1

I'm using Android Studio for long enough, but never experienced this kind of error. I don't know how to fix it. All XML is not usual, it has component or javadoc or something and all java file suddenly has a child. I don't understand why the project turn to be like that.

Here some preview of my error :

this is the java file

this is the xml file

So, what should I do?

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

1

Finally I found how to fixed the problem. Go to

C:\Users\(user name)\.AndroidStudio3.5\system then delete caches file. Done!

0

Your class is actually named: FragmentHome.java and you instead have a class named PhoneUtil

And your package name is incorrect:

com.android.ex.chips

it should be:

id.technow.kjur

in addition to this, your XML is not a layout XML. It is a ProjectCodeStyleConfiguration XML snippet.

So it is IMHO, you have copied files to the wrong places.

kandroidj
  • 13,784
  • 5
  • 64
  • 76
  • I don't think so, because I've open the project and do some work there everyday, but today when I open my AS it just turn to be like that. Error's everywhere – Ardia Rahma Mar 05 '20 at 15:31