This error means that the Arouter did not find the target of your activity. If your activity actually exists,

Please follow the following steps to rectify the fault:

1. This should be added to modules that need to be jumped, or modules that use the ARouter annotation

dependencies{
    annotationProcessor rootProject.ext.arouterCompiler
}Copy the code

And this

defaultConfig{
    ......
     javaCompileOptions {
          annotationProcessorOptions {
          arguments = [moduleName: project.getName()]
       }
   }
}Copy the code

Otherwise, the module’s comments about ARouter will not be resolved and the jump will not be possible

This error occurs when different modules have the same grouping. For example, if AMoudle defines @route (path = “/module/a”) and BMoudle defines @route (path = “/module/b”), this error occurs when AMoudle defines @route (path = “/module/b”). The same applies to exposure services.

2. Check whether the host depends on your module in build.gradle

Compile the project: (‘ myuser “)

If your module is not imported, Arouter will never find it

3, check whether the path of your jump is the same as the path of the jump, and comply with the rules of path:

Example: @route (path= “/test/test”) Is correct

@route (path= “test/test”) error with/missing

@route (path= “/test”) error level at least two

4. Plan of the official website:

  • Usually this is the case where the target page is not found and the target does not exist
  • If the page exists, you can follow these steps to troubleshoot it
    1. Check whether the annotations on the target page are configured correctly. The correct annotation form should be (@route (path= “/test/test”). If there is no special requirement, do not specify the group field.
    2. Check whether the arouter-Compiler SDK is used in the gradle script of the module where the target page is located.
    3. ARouter::�Compiler >>> XXXXX is used to print the route destination
    4. When starting the App, enable debug and log(openDebug/openLog) to check whether the mapping table has been scanned, as D/ARouter::: LogisticsCenter has already been loaded, GroupIndex[4], GroupIndex > 0

Finally, the official website address: github.com/alibaba/ARo…