最近在做项目的时候,突然IDE来了个提示Gradle升级,升级之后就出现了如下的build构建错误提示信息,弄了许久才解决问题,所以想在这里总结一下,也能做个解决问题的参考
原因分析:
Unable to find method
'com.android.build.gradle.api.BaseVariant.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-part y plugin which is not compatible with the other plugins in the project or the ve