Skip to content
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

gradle4.0.1 isBuildModule=false时Dagger不工作,Component不生成 #35

Open
zhaize1115 opened this issue Sep 7, 2020 · 1 comment

Comments

@zhaize1115
Copy link

isBuildModule=true时dagger是ok的,component也能生成,可是改为false出宿主包就不行了。
博主的demo gradle 3.x是没问题的,但是升到4.x就不行了

/home/zhaize/StudioProjects/ArmsComponent/module_gold/src/main/java/me/jessyan/armscomponent/gold/mvp/ui/activity/GoldHomeActivity.java:39: 错误: 找不到符号
import me.jessyan.armscomponent.gold.di.component.DaggerGoldHomeComponent;
^
符号: 类 DaggerGoldHomeComponent
位置: 程序包 me.jessyan.armscomponent.gold.di.component

@chocozhao
Copy link

同样遇到了这样的问题,在4.0中dagger无法使用,发现是在common_component_build中使用annotationProcessor和compileOnly的区别,至于为什么,不知道
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants