AndroidStudio运行报错
An exception occurred applying plugin request [id: ‘com.android.application’]
Failed to apply plugin ‘com.android.internal.application’.
The option ‘android.enableBuildCache’ is deprecated.
The current default is ‘false’.
It was removed in version 7.0 of the Android Gradle plugin.
The Android-specific build caches were superseded by the Gradle build cache (https://docs.gradle.org/current/userguide/build_cache.html).
发现问题是gradle升级到了7.0.4版本之后出现的新报错
解决方案:
找到这个路径下名叫 gradle.properties 的文件,由于我的是改了路径的,所以我的在G盘
把 android.enableBuildCache=true 注释掉 即可
修改前:
修改后
修改后保存重新运行即可!问题解决