PradeepAyyasamy
PradeepAyyasamy

Reputation: 61

Gradle build-cache superseded build cache

[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).

1

Upvotes: 5

Views: 4604

Answers (2)

tarbos
tarbos

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

Mithun Ashok
Mithun Ashok

Reputation: 366

I had the same issue. Picture with Error

Resolved it by removing the android.enableBuildCache from parent C:\Users<Username>.gradle\gradle.properties [Or ~/.gradle/gradle.properties]

enter image description here

Upvotes: 19

Related Questions