JessYanCoding / JessYanCoding/ArmsComponent
gradle4.0.1 isBuildModule=false时Dagger不工作,Component不生成
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with module_gold/src/main/java/me/jessyan/armscomponent/gold/mvp/ui/activity/GoldHomeActivity.java and the missing DaggerGoldHomeComponent import. Compare the isBuildModule=true and false builds, then check the Gradle 4.x component-generation path against the working Gradle 3.x behavior. Done means the false setting produces the component and the project builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100