Friday, July 29, 2022

How To Solve: Android Studio error: "Manifest merger failed: Apps targeting Android ... "

  

.

Error:

Android Studio error: "Manifest merger failed: Apps targeting Android ... "


Solution:

Android Official Reference says ...

If the app component includes the LAUNCHER category, set android:exported to true. In most other cases, set android:exported to false.


Therefore, edit manifest file, specify android:exported="true".


<activity
    android:name=".MainActivity"
    android:exported="true"
    android:theme="@style/Theme.MyApplication.NoActionBar">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>


.

Reference:

https://developer.android.com/about/versions/12/behavior-changes-12#security

No comments:

Post a Comment