您的位置:首页 > 移动开发 > Android开发

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

2018-01-16 15:00 239 查看
错误一

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’出现错误






错误三


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐