Unknown attribute layout_width

3570 views android

I am working on android project, all was working well, until suddenly I opened Android Studio and found warnings all my layout files. E.g unknown attribute android:layout_width, unknown attribute android:id etc. I tried creating a new layout resource file and it also did the same, only options available now are constraint_width,height and so on. What could be my problem here?

enter image description here

answered question

1 Answer


Just on menu bar invalide caches and restart Android-Studio: File -> Invalide Caches/Restart

That should help

posted this

Have an answer?


Please login first before posting an answer.