Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误
来源:互联网 发布:广州蛋糕店哪家好 知乎 编辑:程序博客网 时间:2024/06/03 15:53
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-6.0.0.jar (com.jakewharton:butterknife:6.0.0)
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.
> 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-6.0.0.jar (com.jakewharton:butterknife:6.0.0)
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 } }
}
...
}
阅读全文
0 0
- Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误
- Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit
- Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit
- Android 错误Error:Execution failed for task ':app:preDexDebug'.
- Android错误之:Error:Execution failed for task ':app:mergeDebugResources'.
- Android Error:Execution failed for task ':app:transformClassesWithDexForRelease'错误小记
- android 错误Error:Execution failed for task ':app:lintVitalRelease'.>
- 关于Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.编译错误
- 记一次Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.错误
- Error:Execution failed for task ':app:compileRetrolambdaDebug'.错误解决
- Error:Execution failed for task ':app:buildInfoDebugLoader'.解决错误
- Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.错误 .
- 打包错误:`Error:Execution failed for task ':app:lintVitalRelease'.
- Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.错误
- 错误之-Error:Execution failed for task ':app:mergeDebugResources'
- Error:Execution failed for task ':app:processDebugManifest'.错误解决
- Android Studio 发生 Error:Execution failed for task ':app:packageDebug'.
- Android Studio Error:Execution failed for task ':app:packageDebug'.
- 【Scikit-Learn 中文文档】十三:集成方法
- 【目标检测】RCNN算法详解(下)
- Numpy快速入门教程(三):SciPy,Matplotlib
- Java HashMap的工作原理
- ubuntu+cuda+opencv安装
- Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误
- python基础-同级包模块导入、__init__、syspath导入存在的问题、绝对相对导入、单独包导入
- Laravel 源码解读
- windows下git客户端的下载安装及使用教程
- 第十一周 纸上谈兵:“知原理”检验题目
- 浅谈微服务基建的逻辑
- java8新特性StreamAPI(一)
- 同级controller通过服务通信
- MyBatis解决BLOB中文乱码问题