Android Studio java file gets corrupted

前端 未结 3 1494
醉梦人生
醉梦人生 2020-12-03 14:24

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 s

3条回答
  •  没有蜡笔的小新
    2020-12-03 14:46

    In my case there were 2 file 1 had XML code and other had java code. Delete the file that has XML code and rename your Java file the way it was. Solved my problem.

提交回复
热议问题