Android Studio: Android Manifest doesn't exists or has incorrect root tag

前端 未结 11 1707
天涯浪人
天涯浪人 2020-11-29 21:31

I got this error on Android Studio (AS): \"enter

How I got it:

I created an

相关标签:
11条回答
  • 2020-11-29 21:56

    Just call (in any case) File -> Invalidate Caches and Restart....

    0 讨论(0)
  • 2020-11-29 22:00

    Moving my AndroidManifest.xml to PROJECT_NAME/src/main fixed the issue.

    0 讨论(0)
  • 2020-11-29 22:04

    I had the same errormessage and noticed I had 2 MYPROJECTNAME.iml files, but with a different casing of MYPROJECTNAME. I created this situation after checking out from SVN the project into a directory with the casing error. Just throw away the IML file with the wrong casing, after saving the content of both and use the content that works

    0 讨论(0)
  • 2020-11-29 22:04

    In my case, it was my AndroidManifest.xml file, it was all messed up due to a new library that I added in my build.gradle. So I took the AndroidManifest.xml from my latest commit on Git and I replaced it the current one, and also my settings.gradle was empty so I added include ':app'.

    Hope it helps, and happy coding !

    0 讨论(0)
  • 2020-11-29 22:09

    On Android Studio v0.8.2 clicking on Sync project with Gradle files button solved my problem.

    Screenshot of Android Studio toolbar with "Sync project with Grandle files" button highlighted.

    update

    Thanks to the comment of jaumard. If the Sync project with Gradle files it's not visible you have to open the Gradle panel and click sync icon on top the toolbar.


    Hope it helps :)

    0 讨论(0)
提交回复
热议问题