"AndroidManifest.xml doesn't exist or has incorrect root tag" Error
Solution 1:
clicking on Sync project with Gradle files button will solve your problem.
That button is under File section on Android Studio 3.6.1
Solution 2:
- Close your Android Studio
- Goto
C:\Users\user\.AndroidStudioX.X\system
and DELETE the cache folder - Launch the Android Studio
- Goto Build (menu) -> Clean Project when done click the Build (menu) again and click rebuild project.
That should solve the problem.
Solution 3:
Click on File > Invalidate Cache/Restart, and that's it. Your project should start working.
Solution 4:
For me clicking on Sync project with Gradle files button did not solve the problem alone.
After Syncing project with Gradle files, I explicitly had to invalidate the cache and restart studio. Only after this action, the red cross-mark over configuration disappeared and everything started working.
Solution 5:
In my case, my android project got corrupted and some of the files were showing characters, binary numbers, etc. I tried the following solutions
- Invalidate & Restart
- Rebuild Project
- Sync with Gradle File
But none of the above solutions worked for me.
Then I just deleted the cache folder under C:\Users\username\.AndroidStudio3.6\system
and all the invalid characters disappeared and the actual contents of all the files were displayed. This solution worked for me.