react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Building to android emulator failing.

Open mildfuzz opened this issue 4 years ago • 11 comments

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?

mildfuzz avatar Sep 24 '21 12:09 mildfuzz

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.

phillipkey avatar Sep 25 '21 00:09 phillipkey

This is what app/android/app/src/main/AndroidManifest.xml:39 looks like now

image

mildfuzz avatar Sep 25 '21 06:09 mildfuzz

Set android:exported="true" or android:exported="false" to activity tag under AndroidManifest.xml file.

yuvraj-scalex avatar Jan 28 '22 05:01 yuvraj-scalex

@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 avatar Feb 04 '22 11:02 jimmysafe

@jimmysafe found any solution yet? facing the same issue

kabus202 avatar Feb 09 '22 10:02 kabus202

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

qadirali876 avatar Jul 01 '22 05:07 qadirali876

any solution ?

dibyopra avatar Sep 12 '22 09:09 dibyopra

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: @.***>

qadirali876 avatar Sep 12 '22 09:09 qadirali876

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: @.***>

qadirali876 avatar Oct 11 '22 07:10 qadirali876

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">

aryalprakash avatar Nov 08 '22 14:11 aryalprakash

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

ankitOnecode avatar Dec 22 '22 04:12 ankitOnecode

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.

github-actions[bot] avatar Apr 18 '24 00:04 github-actions[bot]