Manifest Merger failed with Multiple errors

Asked

Viewed 53 times

0

I’m with Androidmanifest.xml accusing error.

Other than that on line 17 you’re wrong:

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 modified but the error continues.

<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>

1 answer

1


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

Check the structure of your AndroidManifest.xml. See below for 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 adapt your AndroidManifest.xml so that it no occurrence of errors.

Read more about structure of the manifest archive in the documentation.

I suggest you read a little too about rules and conventions for naming classes, packages, methods, variables and constants in Java

Browser other questions tagged

You are not signed in. Login or sign up in order to post.