-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Your Environment
- Plugin version: 1.4.0
- Platform: Android
Expected Behavior
The application should run with no problems after updating the compile and target sdk version to 31 (Android 12).
Actual Behavior
The application is having issues during the manifest merger due to the lack of the "android:exported" tags in one of the SDK receivers in the AndroidManifest.
Steps to Reproduce
- Load the 1.4.0 plugin in a sample app.
- Go to app/build.gradle
- Set "compileSdkVersion" to 31
- Set "targetSdkVersion" to 31
- Run the application.
Debug logs
Build output:
Manifest merger failed : android:exported needs to be explicitly specified for <receiver>. 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.
Receiver:
<receiver android:name="com.transistorsoft.locationmanager.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
</intent-filter>
</receiver>smeggingsmegger, martinpoulsen and kevinroy-lo
Metadata
Metadata
Assignees
Labels
No labels