Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILURE: Build failed with an exception #509

Open
DishankTech opened this issue Sep 4, 2020 · 8 comments
Open

FAILURE: Build failed with an exception #509

DishankTech opened this issue Sep 4, 2020 · 8 comments

Comments

@DishankTech
Copy link

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

@pavel-skrypko
Copy link

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

@slavikdenis
Copy link

Should be fixed by mauron85/background-geolocation-android#49

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

@TimmeeG
Copy link

TimmeeG commented Sep 25, 2020

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

@billnbell
Copy link

please merge!

@darron1217
Copy link

@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
Copy link

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

@billnbell
Copy link

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

@r0b0t3d
Copy link

r0b0t3d commented Mar 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants