Android(安卓)studio 升级3.0,butterknife:7.0.1问题
16lz
2021-01-25
会报nnotation 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. - butterknife-7.0.1.jar 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.这样的错
解决办法:build.gradle 中的defaultConfig添加对应策略
defaultConfig { …… testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } }
更多相关文章
- No.11 使用firewall配置的防火墙策略的生效模式
- contentProvider不是线程安全的
- Android(安卓)8.0 通知栏的适配
- 5张图片解决android studio报错:Failed to resolve: com.android.
- 使用ActionBar,调整Theme时遇到You need to use a Theme.AppCompa
- Android(安卓)远程图片获取和本地缓存策略
- 解决 :android studio 提交代码到git/github失败 Could not read
- Android热修复方案的兼容策略CLASS_ISPREVERIFIED问题
- Android硬件加速的一些问题和错误