Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not read cache value from registry.bin [ANDROID STUDIO]

I recently simply deleted my cache memory from the folder %temp% (I read it somewhere deleting content of %temp% improve performane of PC) After that when I open my projects in Android studio its showing error message

Error:Could not read cache value from 'C:\Users\PEACE.gradle\daemon\2.8\registry.bin'.

and the project cannot be further executed :(

How to registry.bin file ? I have got noting in recycle bin .

like image 905
Mayoogh Girish Avatar asked Apr 16 '16 12:04

Mayoogh Girish


4 Answers

  1. Start

  2. Type "cmd" + enter

  3. cd to C:\Users\PEACE.gradle\daemon\2.8\

  4. Ctrl + A

  5. Delete All

  6. Restart Android Studio

like image 84
vohratom Avatar answered Nov 14 '22 04:11

vohratom


just go C:\Users\PEACE.gradle\daemon\2.8 directory and delete all files on that directory. then restart Android Studio. that should work

like image 23
Uditha Prasad Avatar answered Nov 14 '22 03:11

Uditha Prasad


  1. Press Windows-Key + R to open run
  2. Type .gradle to open gradle folder
  3. Delete daemon folder or folder witch named your gradle version (2.8)
  4. Go back to android-studio and press Try Again at the top of your editor
like image 2
Omid Farvid Avatar answered Nov 14 '22 04:11

Omid Farvid


Instead of deleting everything, I would delete C:\Users\PEACE.gradle\daemon\2.8\registry.bin.lock

Linux
Open terminal.
Execute:

rm /home/username/.gradle/daemon/{gradle version}/registry.bin.lock

Windows
Open cmd
Execute

del C:\Users\UserProfile.gradle\daemon{gradle version}\registry.bin.lock

like image 2
solo king jec Avatar answered Nov 14 '22 05:11

solo king jec