All files of android project got corrupted

1k Views Asked by At

When I opened my previous android project on android studio after 15 days. I found that files had been corrupted.There was only a message that "File was loaded in wrong encoding - 'UTF-8'". Is it possible to recover the project files?

Here is a screenshot:

enter image description here

2

There are 2 best solutions below

2
On

Go to File -> Settings -> File Types. Find the file type that you have linked the .ttf files to

Deactivate it with the red minus sign on the right hand side. The next time you'll try to import a .ttf file in Android Studios there will be a popup menu where:

You can select Android Studios to read the .ttf files as a certain filetype You can select the program that normally reads .ttf on your computer (The button on the bottom of the menu).

Hope this helps!

3
On

no need for any setting just use following step

  1. close project
  2. rename project root folder name
  3. re-open project from new name (changeable folder name)