Error: Undefined blocking protocol found in the blocking file. Expected 3, found 0.

I updated my Android studio to version 2.3, and then connecting my application to Firebase, it gave me an error:

Error: An unexpected lock protocol found in the lock file. Expected 3, found 0.

Do I need to return to 2.2.3 or is there a way to fix this? I tried to delete the .gradle file in my project, but it still gave me an error.

+6
source share
4 answers

Delete the folder .gradlefrom the user directory , not from the project.

C:\users\username\.gradle in windows
/home/username/.gradle in Linux 
/users/username/.gradle in Mac
+19

.gradle . , MyApp.

  1. Android
  2. .
  3. .
  4. MyApp.
  5. .gradle.
  6. .
  7. Android Studio.
  8. .

Android Studio Gradle ( ).

.

0

.gradle Android Studio, .

  • 3 -4 .
  • , ,
  • , , , , - , , ,
  • , 119 , , , , .

;

  • Android Studio
  • , .gradle.
  • () , (2.3 4.4 4.6 4.8)
  • .gradle, @Gabriele Mariotti.
  • "caches"
  • ,
  • , , .gradle ( )

4 , , android studio, 5 , .

0

For linux users: press ctrl + H to show hidden files inside the home directory, because the .gradle directory is usually hidden, and delete the .gradle directory.

After that, you may receive the error message “cannot lock the output of the assembly”, then delete the lock files in the Gradle cache by doing something like this:

find ~/.gradle -type f -name "*.lock" -delete
0
source

Source: https://habr.com/ru/post/1673170/


All Articles