android studio 3.0 报错 Unable to find method 'com.android.build.gradle.internal.variant.BaseVari
16lz
2021-01-23
Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'. Possible causes for this unexpected error include:
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
- The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
- Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
原因就是项目gradle里面加了这个:
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'去掉这个就好了
更多相关文章
- android View.GONE 失效原因
- Android应用程序如何避免内存泄漏以及如何检查泄漏原因
- 【quickhybrid】Android端的项目实现
- 万树IT:你的Android不好用的原因就是这些!
- 安卓Android开发视频教程大全50GB/安卓基础+进阶+高级+项目+源码
- Android练习项目 Mp3播放器实现(一)