Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm new to android app development with Android Studio and I came across this error when trying to run my app

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

I found out that my AndroidManifest.xml file had some weird characters in it

enter image description here

Can someone please help me out here.. Thanks

like image 709
TheGrip Vic Avatar asked Jan 31 '19 02:01

TheGrip Vic


2 Answers

Somehow your AndroidManifest get corrupted. AndroidManifest should contain root application details and other project settings like as follows. Please try again by creating new project.

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
like image 136
Farid Haq Avatar answered Oct 09 '22 05:10

Farid Haq


Happy to hear that you start to develope app for Android.

And I suggest you can re-create a project, and the problem will disappear.

Have fun.

like image 2
RenYuZhuo Avatar answered Oct 09 '22 06:10

RenYuZhuo