Problem with Android Studio 3.2.1, corrupted code

2020-01-29 17:31发布

问题:

I'm working on Android Studio 3.2.1 and Kotlin plugin 1.3.10. Suddenly, I face this problem in all .kt files or in Layouts. Also the Manifest is showing something like rubbish code. Please check the attached photos.

What happened? How I can fix this problem?

I thinks something wrong happened to my Android Studio because I test another project and the same problem appears

回答1:

You just inflated a binary file into your text file AndroidManifest.xml. As @MichaelDodd pointed out: it seems to have been a PNG. Maybe you messed up a drag-n-drop or something.

Try to restore your AndroidManifest.xml.