Error:Execution failed for task ':app:javaPreCompileDebug' 报错!

19人阅读 评论(0) 收藏 举报
分类:

报错原因:

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.1.0.jar (com.jakewharton:butterknife:6.1.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.



        解决方案: 这个问题说明你在集成    butterknife 出错了

        在你的build.gradle添加如下代码

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.example.administrator.pandechinalive"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        //添加如下配置就OK了
        javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}




查看评论

Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误

Error:Execution failed for task ‘:app:javaPreCompileDebug’. Annotation processors must be explicit...
  • bobby_fu
  • bobby_fu
  • 2018-01-18 15:03:37
  • 109

Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug'报错

Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be e...
  • qq_41755832
  • qq_41755832
  • 2018-04-12 08:32:22
  • 28

Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit

Android Studio 3.0 应用安装时遇到错误如下:Error:Execution failed for task ':uikit:javaPreCompileDebug'. > Annot...
  • u010610691
  • u010610691
  • 2017-11-18 13:29:03
  • 3709

Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug' 错误

Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explici...
  • AndyTsui
  • AndyTsui
  • 2017-11-23 13:36:01
  • 8295

Android Studio3.0 Error:Execution failed for task ':app:javaPreCompileDebug'

报错!Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be...
  • m0_37345402
  • m0_37345402
  • 2018-02-28 20:12:47
  • 528

Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation pro

在集成tinker的anno依赖包的时候出现的问题,百度了一下差不多的情况:http://blog.csdn.net/andytsui/article/details/78613885 这位仁兄是集...
  • qq_24712507
  • qq_24712507
  • 2018-01-04 14:27:47
  • 753

android编译报错Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Android studio编译时报错:Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Failed to c...
  • fengwuyu4108
  • fengwuyu4108
  • 2017-02-10 10:52:01
  • 8500

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.tra...
  • u013043346
  • u013043346
  • 2016-03-21 18:34:07
  • 1585

Execution failed for task 'appjavaPreCompileDebug'.

Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit...
  • qq_35692133
  • qq_35692133
  • 2018-04-12 00:19:46
  • 32

解决--Error:Execution failed for task ':xxxx:compileTestDebugAidl'.

解决–java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executin...
  • HuangLin_Developer
  • HuangLin_Developer
  • 2017-06-27 09:52:46
  • 282
    个人资料
    等级:
    访问量: 231
    积分: 241
    排名: 31万+
    文章分类
    文章存档
    最新评论