react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

FAILURE: Build failed with an exception

Open DishankTech opened this issue 5 years ago • 8 comments

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

DishankTech avatar Sep 04 '20 04:09 DishankTech

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

pavel-skrypko avatar Sep 21 '20 14:09 pavel-skrypko

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

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

slavikdenis avatar Sep 22 '20 10:09 slavikdenis

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

TimmeeG avatar Sep 25 '20 22:09 TimmeeG

please merge!

billnbell avatar Feb 01 '21 05:02 billnbell

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

Take a look

darron1217 avatar Feb 01 '21 05:02 darron1217

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

thmsbernard avatar Feb 17 '21 20:02 thmsbernard

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

billnbell avatar Feb 18 '21 01:02 billnbell

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

r0b0t3d avatar Mar 13 '21 15:03 r0b0t3d