mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 559 forks source link

[WRONG ISSUE PLEASE DELETE] Testing For Android 12 #546

Closed talibbk closed 3 years ago

talibbk commented 3 years ago

I am trying to test my app for upcoming Android 12.
My build fails at :

Execution failed for task ':app:installDevDebug'. com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl545282450.tmp/base.apk (at Binary XML file line #340): com.transistorsoft.tsbackgroundfetch.BootReceiver: Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters are present.

I have fixed other similar errors by adding attribute android:exported to < activity > components that have < intent-filter > s declared in the app’s AndroidManifest.xml file, but i can't find solution for this one. I am using react-native-background-geolocation which requires react-native-background-fetch as dependency. I hope you can look into this. Thankyou

Your Environment

Context

Expected Behavior

Able to build app

Actual Behavior

get error : Execution failed for task ':app:installDevDebug'.

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl215726433.tmp/base.apk (at Binary XML file line #340): com.transistorsoft.tsbackgroundfetch.BootReceiver: Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters are present

Possible Fix

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

Linuhusainnk commented 6 months ago

have you got solution? for me its not working from android 12 onwards