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’出现错误
错误三
相关文章推荐
- Android studio升级3.0 carry2 出现问题Gradle sync failed: Connection timed out: connect解决办法
- 最近整理Unity4.x 项目升级Unity5.0 过程中出现的各种常见问题
- Android Studio更新后3.0.1后出现re-download问题
- Android Studio升级到3.0.1遇到Annotation processors must be explicitly declared now. The following depend
- Android Studio从2.2.3升级到3.0.1遇到的问题
- Android Studio升级到3.3出现的问题-手动解决办法
- VS2010无法调试问题解决 最近,因为公司开发的需要,对开发环境进行全面的升级,在这其中也遇到了不少问题,在之后将陆续整理出来,以便以后查看。 之前开发环境:VS2008,ArcGIS9.3,Ar
- Android Studio升级Gradle 4.1后出现 class not found
- 【Andoid Studio升级】Android Studio打包时出现一堆错误
- 升级到Android Studio 3.0出现 aapt2错误
- Android studio 升级2.3.0出现的问题
- android studio 升级到1.0出现的几个问题
- Android Studio从2.2.3升级到3.0.1 后原有项目运行在android 4.4上面直接就停止运行
- 关于android studio 运行微博官方的 weibosdkdemo 所出现的问题及解决方法整理
- 升级到Android Studio ,出现Toolbar无法使用的情况.
- Android studio 升级3.0 出现“无法解决依赖”bug
- 【Unity】近期整理Unity4.x 项目升级Unity5.0 过程中出现的各种常见问题,与大家共享。
- 最近整理Unity4.x 项目升级Unity5.0 过程中出现的各种常见问题,与大家共享。
- Android studio 3.0.1版本出现的问题: Please select at least one of the signature versions to use
- Android studio升级3.0.1遇到的坑及Android Studio 3.0 新功能解析和旧项目适配