FAILURE: Build failed with an exception
Your Environment
- Plugin version:0.6.3
- Platform: iOS or Android
- OS version: Android 10
- Device manufacturer and model: Xiaomi K20
- Running in Simulator:
- React Native version:0.63
- Plugin configuration options:
- Link to your project: Autolink
Context
- What went wrong: A problem occurred evaluating project ':@mauron85_react-native-background-geolocation-common'.
Failed to apply plugin [id 'com.android.internal.library'] The option 'android.enableUnitTestBinaryResources' is deprecated. The current default is 'false'. It has been removed from the current version of the Android Gradle plugin. The raw resource for unit test functionality is removed.
Expected Behavior
Actual Behavior
Possible Fix
Steps to Reproduce
Context
Debug logs
Go to:
/node_modules/@mauron85/react-native-background-geolocation/android/common/gradle.properties
And set:
android.enableUnitTestBinaryResources=false
Should be fixed by https://github.com/mauron85/background-geolocation-android/pull/49
@mauron85 could you take a look at that please :) thanks
Just ran into this issue as well - would be great if that PR could get merged in.
please merge!
@billnbell I created fork repo to solve several issues. (Including this issue) https://github.com/darron1217/react-native-background-geolocation
Take a look
Ran into the same issue, fixed by @pavel-skrypko method but I would rather not modify the node_modules...
someone can merge into master and create a release. Is this package being maintained or is it abandoned?
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