更新Findbugs插件高达3.0.1版本后,我无法在Android Studio中编译多模块项目.我还使用"com.google.code.findbugs:annotations:3.0.1"依赖项来使用FindBugs注释(例如@SuppressFBWarnings).
组装项目时出现以下错误:
Execution failed for task ':presentation:packageAllDevelopDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: javax/annotation/CheckForNull.class
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
我的 Android 项目中有复杂的多层架构。
目前我想使用以下 DI 组件和模块的结构:
[Data Layer]
@DataScope //scope is used for caching (Singleton) some Data Layer entities for whole application
- DataComponent //exposes just interfaces which should be used on the BL Layer
//Modules exposes entities for internal (Data Layer) injections and entities which exposed by DataComponent for BL Layer
* DataModule1
* DataModule2
* DataModule3
[Business Logic Layer] (also has component dependency on DataComponent)
@BlScope //scope is used for caching (Singleton) some BL Layer entities for whole …Run Code Online (Sandbox Code Playgroud)