react-native-background-geolocation: Failing to build - Manifest merger failed
Your Environment
- Plugin version: 3.0.9
- Platform: Android
- OS version: 9.0
- Device manufacturer / model: Emulated Pixel 3
- React Native version (
react-native -v): 0.59.8 - Plugin config
N/A
Expected Behavior
App should build without issues
Actual Behavior
App fails to build with error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-117 to override.
Steps to Reproduce
- Install plugin with yarn
- link the plugin with the react-native link command
- Follow the instructions on the linking page for RN <= 0.59
- build the app with either android studio or the react-native run-android command
Context
Trying to install the plugin and see if the installation has not broken the build
Debug logs
Logs
N/A
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (8 by maintainers)
@dakkafex In your
extblock inandroid/build.gradle, try settinggooglePlayServicesLocationVersion = "16.0.0"