Android使用kotlin语言集成tinker热更新报错
程序员文章站
2024-01-22 11:19:52
...
最近项目集成了tinker热更新后在运行assembleRelease时候报以下错误:
Please add them to the annotationProcessor configuration.
Execution failed for task ':app:javaPreCompileRelease'.
> 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.
- tinker-android-anno-1.9.13.jar (com.tinkerpatch.tinker:tinker-android-anno:1.9.13)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
本人的Android Studio版本是3.1.3,gradle版本是3.1.3,kotlin版本是1.2.30;后来看了错误提示,以下是我的修复方案:
上一篇: Android接入tinker热更新
下一篇: MLP mnist 手写数字识别