Tag Archives: Android problems

Manifest merger failed: android:exported needs to be explicitly specified for . Apps targ

Manifest merger failed : android: exported needs to be explicitly specified for. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

Solution: In the Activity with the intent, add android:exported="true"

<activity android:name=".MainActivity"
            android:exported="true">
      <intent-filter>
          <action android:name="android.intent.action.MAIN" />

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

Manifest merger failed with multiple errors

Androidmanifest.xml integration failed
my solution is:
build.gradle in the app

android {
    compileSdkVersion 30

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 202
   }
}

Build.gradle in the module, plus buildtoolsversion “29.0.0”

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.0"

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
   }
}