Open himat opened 4 years ago
I ran ./gradlew app:dependencies
and this gave me
+--- project :mauron85_react-native-background-geolocation
| +--- project :@mauron85_react-native-background-geolocation-common
| | +--- com.google.android.gms:play-services-location:17.0.0 (*)
| | +--- com.android.support:support-compat:28.0.0 -> androidx.core:core:1.1.0 (*)
| | +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.1.0 (*)
| | +--- com.intentfilter:android-permissions:0.1.7
| | +--- com.github.tony19:logback-android:1.1.1-9
| | | \--- com.github.tony19:apktool-lib:1.4.4-5
| | +--- org.slf4j:slf4j-api:1.7.21
| | \--- com.github.jparkie:promise:1.0.3
| +--- org.slf4j:slf4j-api:1.7.21
| \--- com.facebook.react:react-native:+ -> 0.61.5 (*)
which seems fine and it doesn't seem like there are any same modules imported at the highest level.
So it seems like some internal module (org.apache.commons.io.Charsets) is being imported within the library somewhere.
using npx jetify
@himat by any chance were you able to resolve this error? I seem to be getting it as well
npx jetify did not solve my issue
I created fork to solve this issue. https://github.com/darron1217/react-native-background-geolocation
You can install it by command below
npm install https://github.com/darron1217/react-native-background-geolocation#develop
I had same problem with org.apache.commons.io.Charsets. Thank you @darron1217 for whatever you did, it fixed my problem.
@darron1217 your module not build release using androidX. Your module it is Symbol problem.
Your Environment
When I run
./gradlew bundleRelease
, I get this errorHere is my
android/build.grade
file in my react native projectI'm able to build the app and the gps is working with
yarn react-native android
for local debug building. But the release build is failing using the command above.How do I resolve this?