Manifest merger failed with multiple errors

0

I'm running AndroidManifest.xml with an error.

Other than that on line 17 it accuses of error:

  

Top level element is not completed

<action android:name="android.intent.action.MAIN" />

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name="org.view.activityAcessar" />
    <activity android:name="org.view.activityMenu"></activity>

    <!-- Adicionado para reconhecer o Layout Primário -->
    <activity android:name="org.view.activityAcessar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

</application>

I have however modified the continuous error.

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity
    android:name="org.view.activityAcessar"
/>

<activity android:name="org.view.activityMenu">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

    
asked by anonymous 10.01.2017 / 12:22

1 answer

1

The file AndroidManifest.xml is the main file of the project, where all the settings are. It should be in the root folder of the project, containing all the necessary settings to execute the application, such as the name of the package used, the name of the classes of each activity and various other settings.

Correctly check the structure of your AndroidManifest.xml . Here is an example:

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
   package="br.com.exemplo.oimundo" 
   android:versionCode="1" 
   android:versionName="1.0">

   <application android:icon="@drawable/icon" android:label="@string/app_name">
      <activity 
         android:name=".OiMundo" 
         android:label="@string/app_name">
         <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
         </intent-filter>
      </activity>
   </application>
</manifest>

Try to properly tailor your AndroidManifest.xml so that it does not have any errors.

Read more about manifest file structure in .

I suggest you read a little about #

    
10.01.2017 / 13:09