[Build file ‘F:GOOGLE PROJECTSMusicPlayer-devappbuild.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).
2
Answers
Deleting the gradle user home directory fixed this for me. On Linux this is
~/.gradle
. I think it’sC: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.I had the same issue.
Resolved it by removing the android.enableBuildCache from parent C:Users<Username>.gradlegradle.properties [Or ~/.gradle/gradle.properties]