Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio java file gets corrupted

Unfortunaetly my laptop shutdown unproperly during coding in Android Studio. When I turned on again and tried to reload the project one class / java file was corrupted and suddenly all code was gone!

What I already tried:

  • Local History -> Show History = nothing to show
  • File / Invalidate Caches and Restart = no luck
  • Decompiled apk, but code has been obfuscated by Proguard, so it is almost impossible to read

Weird thing is that the java file has a size but the content is empty (I already deleted "nul nul nul" characters but still no luck.

Any help or advice?

like image 344
Sini Avatar asked Dec 16 '16 00:12

Sini


1 Answers

I once had this issue and the way i solved it was to delete the folder C:\Users\cc.AndroidStudio3.2\system\caches.

i hope this helps

like image 181
amos godwin Avatar answered Oct 13 '22 08:10

amos godwin