Everything was working properly but suddenly i am getting every java file in wired format with above error.
Asked
Active
Viewed 260 times
-1

Sagar Sah
- 55
- 1
- 8
-
What is the question? Android Studio clearly does not like you code style – Jakoss Jan 12 '22 at 15:35
-
Everything was working properly but suddenly i am getting every java file in wired format with above error. – Sagar Sah Jan 12 '22 at 15:38
-
Hi I don't know what happens but re importing project worked for me!!!!! – Sagar Sah Jan 13 '22 at 10:25
1 Answers
0
You are pasting xml content into java file - Android Studio parser does not know what to do. Create proper .xml file for that content

Jakoss
- 4,647
- 2
- 26
- 40
-
Thanks for comment, But i have not added anything in java file it was a working code and it automatically happens with all my java files become like a xml. – Sagar Sah Jan 12 '22 at 15:46
-
@SagarSah you are the only one who knows why you have xml code in java file, this is wrong and must be fixed. – Ben-J Jan 12 '22 at 15:55
-
Yes, and you really need to improve the question with more details to get any good answers – Jakoss Jan 12 '22 at 21:03