Android is not building
See original GitHub issueYour 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
- Open AndroidStudio
- Try to build app
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created fork to solve this issue. https://github.com/darron1217/react-native-background-geolocation
You can install it by command below
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’)