Reputation: 61
[Build file 'F:\GOOGLE PROJECTS\MusicPlayer-dev\app\build.gradle' line: 1
A problem occurred evaluating project ':app'.
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).
Upvotes: 5
Views: 4604
Reputation: 241
Deleting the gradle user home directory fixed this for me. On Linux this is ~/.gradle
. I think it's C:\Users\<Username>\.gradle
on Windows.
Before that, I also updated my systems Java installation and made [project-dir]/gradlew
executable, but I don't think these steps are actually part of the solution.
Upvotes: 1
Reputation: 366
Resolved it by removing the android.enableBuildCache from parent C:\Users<Username>.gradle\gradle.properties [Or ~/.gradle/gradle.properties]
Upvotes: 19