Open romancxx opened 2 years ago
If anyone is experiencing the same problem, I solved it by patching this package with :
<service
android:name="com.marianhello.bgloc.sync.AuthenticatorService">
android:exported="true"> <<<<< Add this to AndroidManifest.xml L34
android:exported="true"
I tried this one, unlucky for me not working on my end.
Do you have any suggestion?
I solved it by
OR
add android:exported="true" in /node_modules/@mauron85/react-native-background-geolocation/android/lib/src/main/AndroidManifest.xml
I hope it's working.
android sdk 31, android exported fix #574
This
you have to add android:exported="true" in /node_modules/@mauron85/react-native-background-geolocation/android/lib/src/main/AndroidManifest.xml
I have tried this but still i'm getting this error
A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction Manifest merger failed : 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.
If anyone is experiencing the same problem, I solved it by patching this package with :
<service android:name="com.marianhello.bgloc.sync.AuthenticatorService" // maybe should remove '>' android:exported="true"> <<<<< Add this to AndroidManifest.xml L34
<service android:name="com.marianhello.bgloc.sync.AuthenticatorService" // maybe should remove '>' android:exported="true"> <<<<< Add this to AndroidManifest.xml L34
Solved using this thanks !
hi, is there a way we can get this in the library and not update the AndroidManifest.xml manually?
@fatinfarzanaazizan You can update your react native version if you don't want to update manually
@avaiyakapil thanks. can you help to explain how would that help? would it also help solving Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE
error that occurs in DistanceFilterLocationProvider file for this library?
@fatinfarzanaazizan Did you find a solution to the Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE
error?
@adewalebanjo no, still having this issue unfortunately.
@fatinfarzanaazizan the same issue for me
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE
Any solution?
Your Environment
Context
I am trying to run my app on Android after installing the package. I had a few errors that I solved with answers of other issues but I'm stuck with this one :
Not like the example app, I'm trying to compile with the SDK 31. I couldn't find any example using higher than 28 but it is mandatory for me. My build.gradle ext looks like :
My dependencies are (I'm using react-native-maps if that could be a problem) :
I also added :
to the setting.gradle to solve another issue.
Expected Behavior
Build successfully
Actual Behavior
Error
Possible Fix
No idea.
Steps to Reproduce
Context
Debug logs