Building to android emulator failing.
I am seeing the following error when running react-native run-android
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl2072621848.tmp/base.apk (at Binary XML file line #80): com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present
Does this mean anything to anyone?
requires that an explicit value for android:exported be defined when intent filters are present
I'd try adding android:exported="false" in the service tag.
This is what app/android/app/src/main/AndroidManifest.xml:39 looks like now

Set android:exported="true" or android:exported="false" to activity tag under AndroidManifest.xml file.
@mildfuzz did you find a solution to this?
I am still having this issue: i have tried to add android:exported="false" both in debug and main manifest file but i still get the error.
@jimmysafe found any solution yet? facing the same issue
Having same issue
- What went wrong: Execution failed for task ':app:installDebug'.
java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1858654457.tmp/base.apk (at Binary XML file line #39): com.stepout.MainActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present
any solution ?
YES
On Mon, Sep 12, 2022 at 2:32 PM Dibyo Pra @.***> wrote:
any solution ?
— Reply to this email directly, view it on GitHub https://github.com/zo0r/react-native-push-notification/issues/2160#issuecomment-1243467480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJBNGX3QIUK3MGRAXXP5STV532B5ANCNFSM5EV4TB5A . You are receiving this because you commented.Message ID: @.***>
add the following code in activity file
android:exported="true"
On Mon, Sep 12, 2022 at 2:35 PM Qadir Ali @.***> wrote:
YES
On Mon, Sep 12, 2022 at 2:32 PM Dibyo Pra @.***> wrote:
any solution ?
— Reply to this email directly, view it on GitHub https://github.com/zo0r/react-native-push-notification/issues/2160#issuecomment-1243467480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJBNGX3QIUK3MGRAXXP5STV532B5ANCNFSM5EV4TB5A . You are receiving this because you commented.Message ID: @.***>
adding android:exported="true" on receiver worked for me.
<receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"> should be
<receiver android:exported="false" android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver">
I have tried both the way by adding false and true but still getting the same error.
- What went wrong: Execution failed for task ':app:installDebug'.
java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl82705364.tmp/base.apk (at Binary XML file line #361): com.freshchat.consumer.sdk.receiver.FreshchatReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.