Android Studio 3.0.1升级--出现的坑(多方整理出来的)

错误一
Error:Execution failed for task ':Lubanlibrary: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-compiler-8.4.0.jar (com.jakewharton:butterknife-compiler:8.4.0)
    - auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2)
  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.
注意看错误代码红色的地方:在错误提示红色依赖包的build.gradle中加入以下代码。(如上面红色的地方提示:
Lubanlibrary 就在Lubanlibrary的build.gradle里加下面代码)
 
  
android {
  ...
    defaultConfig {
      ...
javaCompileOptions {
    annotationProcessorOptions {
        includeCompileClasspath true
    }
}
... } ... }
错误二 Unable to load class ‘org.gradle.api.internal.component.Usage’出现错误

Android Studio 3.0.1升级--出现的坑(多方整理出来的)_第1张图片


Android Studio 3.0.1升级--出现的坑(多方整理出来的)_第2张图片

错误三

Android Studio 3.0.1升级--出现的坑(多方整理出来的)_第3张图片


你可能感兴趣的:(Android Studio 3.0.1升级--出现的坑(多方整理出来的))