解决 :ARouter::There is no route match the path

    xiaoxiao2022-07-05  148

    举个例子: 项目中有两个模块,一个模块是app。 app模块中有一个Activity注解如下:@route(path = “/app/activity1”)

    一个模块是test。 test模块中有一个Activity注解如下:@route(path = “/test/activity2”)

    上面这样注解是没问题的。

    记得每个模块的build.gradle要加注解器

    annotationProcessor "com.alibaba:arouter-compiler:${你用的版本}"

     

    最新回复(0)