Home > database >  Apps targeting Android 12 and higher are required to specify an explicit value for 'android:exp
Apps targeting Android 12 and higher are required to specify an explicit value for 'android:exp

Time:09-29

When I'm trying to compile an APK file I get the next error: dove\frontend\android\src\main\AndroidManifest.xml Error: 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.

I have such value, but AGP does not see it. My manifest with value: https://github.com/y9neon/dove/blob/master/frontend/android/src/main/AndroidManifest.xml#L15

AGP version: 4.2.2 Any workarounds except of downgrading targetSdk?

CodePudding user response:

All you need to do is open the manifest and select "Merged Manifest" in the bottom panel and look for the dependency that adds the activity without this property. In my case, it was androidx.core.test from compose unit tests.

  • Related