Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"AndroidManifest.xml doesn't exist or has incorrect root tag" Error

I am new to AndroidStudio AND Gradle.

I imported a project from eclipse, created a module, and tried to run the project, but I got this error:

AndroidManifest.xml doesn't exist or has incorrect root tag 

I have been looking at this previous solution for it: How to build an android library with Android Studio and gradle?

But that solution is WAY too advanced for me.

Could someone please help me understand in simpler terms what is going wrong and how I can fix it?

Thank you!

Update after one of the answers:

These are the options I have under the build menu:

enter image description here

like image 599
Genadinik Avatar asked Dec 14 '15 14:12

Genadinik


People also ask

How do I fix AndroidManifest XML error?

The following steps should solve AndroidManifest. xml merge problems. Remove the AAR file from Assets > Plugins > Android > libs in your unity project. Copy the AAR file from removed-uses-sdk-aar to Assets > Plugins > Android > libs in your unity project.

Where can I find AndroidManifest XML file?

xml file is created in the app's corresponding dist folder. The file is located at WorkspaceName>/temp/<AppName>/build/luaandroid/dist. The manifest file provides essential information about your app to the Android operating system, and Google Play store.

What is AndroidManifest?

Every app project must have an AndroidManifest. xml file (with precisely that name) at the root of the project source set. The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.


1 Answers

clicking on Sync project with Gradle files button will solve your problem.

That button is under File section on Android Studio 3.6.1

like image 65
Nirel Avatar answered Sep 19 '22 21:09

Nirel