question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building to android emulator failing.

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
aryalprakashcommented, Nov 8, 2022

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

1reaction
yuvraj-scalexcommented, Jan 28, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot known issues with Android Emulator
Troubleshoot known issues with Android Emulator · Check for adequate disk space · Antivirus software · HAXM on unsupported versions of macOS ...
Read more >
Emulator in Android Studio doesn't start - Stack Overflow
Access the BIOS setting and turn on the virtualization feature. Mine was together with options like cpu fan speeds and stuffs. Then make...
Read more >
Android Emulator Troubleshooting - Xamarin - Microsoft Learn
This article explains how to diagnose and work around problems that may occur when using the Android Emulator.
Read more >
Unable to launch Android emulator from Android Device ...
I was attempting to launch Android Device Manager from Tools>Android>Android Device Manager (ADV), but the result is always the same message:.
Read more >
GMD test failed due device provisioning error on Windows
INFO | Android emulator version 31.2.6.0 (build_id 8100890) (CL:N/A) > Task :app:pixel2api30Setup Creating snapshot for dev30_google_x86_Pixel_2 Creating ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found