New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RouterInit这个类不存在 #23
Comments
这个类是自动生成的, stub 的库是编译时依赖,发布的 SDK 不会包含这个类。 |
我没有自动生成,而且自定义Router注解,在open的时候也找不到 |
|
就是@router这个定义Activity的路由 |
你用的什么 IDE,是不是没开 AnnotationProcessor? |
AnnotationProcessor还需要我自己打开的么?我用的AS |
我的 QQ: 786553789, 我们 QQ 沟通吧,方便解决问题。 |
QQ 上沟通,发现原因是 apt 配置在了 library module 里面而不是主工程里面,导致的主工程的 apt 没有执行。 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
导入的是下面的库
compile 'com.github.mzule.activityrouter:activityrouter:1.2.1'
apt 'com.github.mzule.activityrouter:compiler:1.1.7'
RouterInit这个类不存在,看了源码中还引入了一个“stub”的字库,里面有RouterInit这个类,但是我通过gradle引入就找不到这个类!
The text was updated successfully, but these errors were encountered: