Home > database >  i can't run my android studio project it shows me Manifest merger failed with multiple errors,
i can't run my android studio project it shows me Manifest merger failed with multiple errors,

Time:07-19

this is my android.manifest file i searched a lot of things here but my problem is not solved yet please help me what to do?

<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"enter code here package=enter code here"com.example.e_healthcareapp" >

`enter code here <application`enter code here`
    android:allowBackup="true"
    android:dataExtractionRules="@xml/data_extraction_rules"
    android:fullBackupContent="@xml/backup_rules"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.EHealthcareApp"
    tools:targetApi="31" >
    <activity
        android:name=".MainActivity"
        android:exported="false"
        android:label="@string/title_activity_register_option" />
    <activity
        android:name=".Login_options"
        android:exported="false"
        android:parentActivityName=".MainActivity" />
    <activity
        android:name=".Registration"
        android:exported="false"
        android:label="Registration Form"
        android:parentActivityName=".Registration" />
    <activity
        android:name=".MainActivity2"
        android:exported="false"
        android:label="Log in Form"
        android:parentActivityName=".MainActivity2" /> <!-- back button values -->
    <activity
        android:name=".MainActivity"
        android:exported="true"
        tools:ignore="DuplicateActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

this is my build.gradle(module:appname)

CodePudding user response:

try this

Add this two lines into your gradle.properties file

android.useAndroidX=true
android.enableJetifier=true

CodePudding user response:

Can't comment because of reputation, so please be gentle with your Downvotes. In your Manifest, you can choose between Text and Merged Manifest (in Android Studio below your Manifest). Click on Merged Manifest and there is a detailed description of your error.

  • Related