Home » Android » java – All my layout xml files became autogenerated files

java – All my layout xml files became autogenerated files

Posted by: admin June 15, 2020 Leave a comment

Questions:

Yesterday everything on my app was working flawlessly but today when I opened Android Studio all the xml files were corrupt(?-not sure if this is the right term)

Every one looks like this

enter image description here

How to&Answers:

I had face same issue today and below are few steps which i had done and i got success to resolve this issue.

Just copy your project into another directory or change project location. and open your project again this simple step works for me.

Few more steps which i had tried may be this one works for you.

Delete all cache file from below location

C:\Users{your pc name}.gradle\caches

C:\Users{your pc name}.AndroidStudio3.2\system\caches

Sync you project gradle.

Hope this will help you. This kind of error is really frustrating.