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
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.