Search code examples
androidcorrupt

Some Files Got Corrupted


The power went down and on restart all files are showing these weird characters and message is saying about I am using wrong encoding.

enter image description here enter image description here

The interesting thing is, the code is appearing like this only in Android Studio. If I open any of individual file with notepad, the code is just fine.


Solution

  • Actually, I got into the same problem To fix this issue

    First, try Invalidate caches and restart if it not works then delete .gradle .idea folders in the project directory and open the project again.

    Note: Take Backup of project folder before trying