Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read Gradle's registry.bin?

I was working on Android studio (on the Mac) when I got the following message:

Error:Could not read cache value from '/Users/Friso/.gradle/daemon/2.2.1/registry.bin'.

I don't know what caused it, since I didn't do anything to the build files.

How can I fix this?

like image 367
Friso Avatar asked Jan 23 '15 09:01

Friso


People also ask

How to stop Gradle build running in android studio?

If you want to explicitly stop running Daemon processes for any reason, just use the command gradle --stop . This will terminate all Daemon processes that were started with the same version of Gradle used to execute the command.

How to stop Gradlew run?

You can call . \gradlew --stop in a Terminal and it will kill all gradle processes in Android Studio for Windows OS. You Can find terminal at left bottom of your android studio for windows. Save this answer.

How do I delete gradle daemons?

To clear your gradle cache in android studio: open terminal and. run gradlew clean.

How do I know if gradle Daemon is running?

How can I find out if the gradle daemon is running? Running in terminal gradle --status will give the status of the gradle. You'll see "No Gradle daemons are running" message if there's no gradle daemon running. Otherwise, you'll see status of the daemon.


2 Answers

Try deleting the /Users/Friso/.gradle directory and rebuild.

like image 99
Scott Barta Avatar answered Nov 15 '22 21:11

Scott Barta


In my case, the registry.bin file was empty. However, there was a lock which seemed to be causing the issue. I deleted the lock file - registry.bin.lock from the /Users/varun/.gradle/daemon/2.8/ directory and it worked. Hope this helps.

like image 20
Varun Avatar answered Nov 15 '22 23:11

Varun