AAPT: error: unexpected element found in – Andoid Studio

I’m trying to finish my final year project by building a mobile app. Every time i run the code on a simulator it pops me up with this error. Specifically on the “debugAndoidManifest.xml” file. Could someone help me?

<applications
    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/Theme.Login" >
    <activity android:name="com.example.login.Login" />
    <activity android:name="com.example.login.Register" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.example.login.MainActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</applications>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Answer

The tag should be <application> not <applications>. remove s from it.

Leave a Reply

Your email address will not be published. Required fields are marked *