After deleting contents of the .gradle/caches directory , getting the error as Failed to create Jar file

28 views Asked by At

Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file C:\Users\Avani.gradle\caches\jars-9\992c2f3a0eb58806fe1b8305e8571da1\gradle-7.3.1.jar.

I got this error particularly after deleting the files in the .gradle/caches/ folder.

1

There are 1 answers

2
Jigar Kanjariya On

try gradle clean then invelidate caches and restart it works for me