Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.17k stars 3.34k forks source link

tinker在升级gradle:3.2.0时,提示缺少annotationProcessor #949

Closed wimwu closed 5 years ago

wimwu commented 6 years ago

异常类型:app运行时异常

手机型号:One Plus A2001

手机系统版本:Android 6.1

tinker版本:1.9.1

gradle版本:3.2.0

是否使用热更新SDK:TinkerPatch SDK

系统:Mac

堆栈/日志: Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.

根据官网配置,已经在所有模块的build.gradle中添加includeCompileClasspath true,但是还是提示此错误,提示缺少annotationProcessor,(tips:butterKnife有类似问题,添加了一个9.0.0-SNAPSHOT版本)

zgmd commented 5 years ago

同样的问题,求解答

zgmd commented 5 years ago
    defaultConfig {
    //添加如下配置就OK了
    javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }

}