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 561 forks source link

FAILURE: Build failed with an exception #509

Open DishankTech opened 4 years ago

DishankTech commented 4 years ago

Your Environment

Context

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

pavel-skrypko commented 3 years ago

Go to: /node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties And set: android.enableUnitTestBinaryResources=false

slavikdenis commented 3 years ago

Should be fixed by https://github.com/mauron85/background-geolocation-android/pull/49

@mauron85 could you take a look at that please :) thanks

TimmeeG commented 3 years ago

Just ran into this issue as well - would be great if that PR could get merged in.

billnbell commented 3 years ago

please merge!

darron1217 commented 3 years ago

@billnbell I created fork repo to solve several issues. (Including this issue) https://github.com/darron1217/react-native-background-geolocation

Take a look

thomas-negrault commented 3 years ago

Ran into the same issue, fixed by @pavel-skrypko method but I would rather not modify the node_modules...

billnbell commented 3 years ago

someone can merge into master and create a release. Is this package being maintained or is it abandoned?

r0b0t3d commented 3 years ago

If you are using patch-package, use this patch

@mauron85+react-native-background-geolocation+0.6.3.patch

diff --git a/node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties b/node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties
index 0c27457..f7f2f4b 100644
--- a/node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties
+++ b/node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties
@@ -1,2 +1 @@
-android.enableUnitTestBinaryResources=true
 android.builder.sdkDownload=true