Android manifest attribute not allowed here Android manifest attribute not allowed here xml xml

Android manifest attribute not allowed here


Just Close your manifest file and reopen it. It worked for me.


In my case, closing the AndroidManifest.xml AND choosing File > Invalidate Caches / Restart solved the issue.

Not sure why I had to do the last step as well but it sorted out all those errors for me.


Close AndroidManifest — File — Sync Project with Gradle Files. It helped.

P.S. A few months later I met this problem again — googled — found this answer and it didn't help! :D But this time I removed the Android Studio and installed the beta version. It helped.