question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android is not building

See original GitHub issue

Your Environment

  • Plugin version: ^0.6.3
  • Platform: Android
  • Running in Simulator: YES
  • React Native version: 0.62.2

Context

The project is not building for android

Expected Behavior

Should build correctly and generate a .apk and .aab files.

Actual Behavior

Receiving a log error when try to build app:

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.
Affected Modules: @mauron85_react-native-background-geolocation-common

Possible Fix

I did many tests and I saw is just needed to remove android.enableUnitTestBinaryResources from gradle.properties

Steps to Reproduce

  1. Open AndroidStudio
  2. Try to build app

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
darron1217commented, Jan 8, 2021

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
1reaction
saumya1021commented, Sep 21, 2020

Just add this to settings.gradle file include ‘:@mauron85_react-native-background-geolocation-common’ project(‘:@mauron85_react-native-background-geolocation-common’).projectDir = new File(rootProject.projectDir, ‘…/node_modules/@mauron85/react-native-background-geolocation/android/common’) include ‘:@mauron85_react-native-background-geolocation’ project(‘:@mauron85_react-native-background-geolocation’).projectDir = new File(rootProject.projectDir, ‘…/node_modules/@mauron85/react-native-background-geolocation/android/lib’)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio Gradle not Building Project - Stack Overflow
I think you have updated your gradle build tool. Go to file>setting>build,execution deployment> gradle> check your gradle tool version.
Read more >
Known issues with Android Studio and Android Gradle Plugin
Known issues with the Android Gradle Plugin · Not all dynamic-feature library dependencies are lint checked · Signing file named with carriage return...
Read more >
Android App not building [solved: need JDK11 for notifee v4]
Problem. Building iOS works fine, but when I build on android it fails with the below error. I do not want to upgrade...
Read more >
Android project not building for correct processor architectures ...
apk produced only runs on ARM, it doesn't run on x86 or x64. There's also another separate bug that's causing the yaml to...
Read more >
Building and Running from Android Studio
If there are no devices or emulators running that meet the requirements of the build target, Android Studio looks at the available AVDs....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found