乐昌会计继续教育,悬崖上的金鱼姬国语版,就让我多爱你一天
导入项目时,发现之前项目的butter knife报错,用到注解的应该都会报错
error:execution failed for task ':app:javaprecompiledebug'.
> 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.
- 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.
see https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
在app的build中
android {
...
defaultconfig {
...
//添加如下配置就ok了
javacompileoptions { annotationprocessoroptions { includecompileclasspath = true } }
}
...
}
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Android studio开发小型对话机器人app(实例代码)
Android通过Java sdk的方式接入OpenCv的方法
Android 通过cmake的方式接入opencv的方法步骤
Android Studio finish()方法的使用与解决app点击“返回”(直接退出)
Android 进度条 ProgressBar的实现代码(隐藏、出现、加载进度)
网友评论