Question Detail

Manifest merger failed : android:exported Apps targeting Android 12

2 years ago Views 916 Visit Post Reply

Manifest merger failed : android:exported needs to be explicitly specified for <activity>. 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.

I have already added android:exported="true" in all my Activity, Service and Broadcast receiver but still getting above mentioned Error in android Studio,

<activity
    android:name=".activity.GetStartedActivity"
    android:exported="true"
    android:screenOrientation="portrait" />
<meta-data
    android:name="preloaded_fonts"
    android:resource="@array/preloaded_fonts" />

<provider
    android:name="androidx.core.content.FileProvider"
    android:authorities="in.companify.fileProvider"
    android:exported="false"
    android:grantUriPermissions="true">
    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/provider_paths" />
</provider>
<receiver
    android:name=".extras.SMSReceiver"
    android:exported="true"
    android:permission="com.google.android.gms.auth.api.phone.permission.SEND">
    <intent-filter>
        <action android:name="com.google.android.gms.auth.api.phone.SMS_RETRIEVED" />
    </intent-filter>
</receiver>

any please help me where i am doing wrong, I am using many third party Depandancy, which is on updated versions so i don't think they are the reason behind this.


Thread Reply