react-native -v): 0.59.8## Expected Behavior
<!--- Tell us what should happen -->
App should build without issues
## Actual Behavior
<!--- Tell us what happens instead -->
App fails to build with error:
FAILURE: Build failed with an exception.
## Steps to Reproduce
<!--- reproduce this issue; include code to reproduce, if relevant -->
1. Install plugin with yarn
2. link the plugin with the react-native link command
3. Follow the instructions on the linking page for RN <= 0.59
4. build the app with either android studio or the react-native run-android command
## Context
<!--- What were you trying to do? -->
Trying to install the plugin and see if the installation has not broken the build
## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat -s TSLocationManager
-->
<details><summary>Logs</summary>
``` <!-- Syntax highlighting: DO NOT REMOVE -->
N/A
Paste the following files:
android/build.gradleandroid/app/build.gradleand to find out why your app is loading androidx dependencies (I thought that was a 0.60 only), run the following:
$ cd android
$ ./gradlew app:dependencies
jetifier has a reverse mode (jetify -r) because during this transition libraries will be one-by-one making breaking changes and pulling in androidx, the reverse mode does the standard mapping but in reverse to keep you aligned with support libraries until you move your app to RN0.60. Could be that...
Regarding the androidX dependencies... its spits out over 3000 lines and it looks like pretty much every package is using it, im not sure how to interpret the output
Paste the following files:
android/build.gradleandroid/app/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "16.0.0"
googlePlayServicesLocationVersion = "17.0.0"
}
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.25.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://maven.google.com' }
maven { url "https://jitpack.io" }
maven {
url "$rootDir/../node_modules/react-native-background-geolocation/android/libs"
}
maven {
url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
}
}
}
app/build.gradle
apply plugin: "com.android.application"
import com.android.build.OutputFile
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB.
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
android {
purgeBackgroundGeolocationDebugResources(applicationVariants)
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.whosthat_app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 12
versionName "0.1.12 - Aegwynn"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
multiDexKeepFile file('multidex-config.txt')
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
implementation project(':react-native-background-fetch')
implementation project(':react-native-background-geolocation')
implementation project(':react-native-image-crop-picker')
implementation project(':react-native-firebase')
implementation project(':react-native-image-picker')
implementation project(':react-native-svg')
implementation project(':react-native-maps')
implementation project(':react-native-vector-icons')
implementation project(':@react-native-community_async-storage')
implementation project(':react-native-gesture-handler')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
// Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation "com.google.firebase:firebase-auth:16.2.1"
implementation "com.google.firebase:firebase-firestore:18.2.0"
implementation "com.google.firebase:firebase-storage:16.1.0"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
transitive = true
}
compile project(':react-native-geolocation-service')
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
// TODO: fabric will be end of life soon for crashlytics
apply plugin: 'com.google.gms.google-services'
apply plugin: "io.fabric"
// [Added by react-native-background-geolocation] Purge debug sounds from release build.
def purgeBackgroundGeolocationDebugResources(applicationVariants) {
if ((rootProject.ext.has("removeBackgroundGeolocationDebugSoundsInRelease")) && (rootProject.ext.removeBackgroundGeolocationDebugSoundsInRelease == false)) return
applicationVariants.all { variant ->
if (variant.buildType.name == "release") {
println("[react-native-background-geolocation] Purging debug resources in release build")
variant.mergeResources.doLast {
delete(fileTree(dir: variant.mergeResources.outputDir, includes: ["raw_tslocationmanager*"]))
}
}
}
}
Are you telling me that you started having this problem only after adding background-Geolocation?
correct
Show me the result of ./gradlew app:dependencies
background-geolocation doesn't import androidx dependencies when your ext.supportLibVersion = "28.0.0"
the top is cut off because my terminal wont go any deeper
I have same issue with 0.59.9
@dakkafex You only need to observe any of the dependency trees:
+--- project :react-native-geolocation-service
+--- androidx.multidex:multidex:2.0.0
+--- androidx.appcompat:appcompat:1.0.0
| +--- androidx.annotation:annotation:1.0.0
| +--- androidx.core:core:1.0.0
| | +--- androidx.annotation:annotation:1.0.0
| | +--- androidx.collection:collection:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0
| | +--- androidx.lifecycle:lifecycle-runtime:2.0.0
| | | +--- androidx.lifecycle:lifecycle-common:2.0.0
| | | | \--- androidx.annotation:annotation:1.0.0
| | | +--- androidx.arch.core:core-common:2.0.0
| | | | \--- androidx.annotation:annotation:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0
| | \--- androidx.versionedparcelable:versionedparcelable:1.0.0
| | +--- androidx.annotation:annotation:1.0.0
| | \--- androidx.collection:collection:1.0.0 (*)
| +--- androidx.collection:collection:1.0.0 (*)
| +--- androidx.cursoradapter:cursoradapter:1.0.0
| | \--- androidx.annotation:annotation:1.0.0
| +--- androidx.legacy:legacy-support-core-utils:1.0.0
| | +--- androidx.annotation:annotation:1.0.0
| | +--- androidx.core:core:1.0.0 (*)
| | +--- androidx.documentfile:documentfile:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0
| | +--- androidx.loader:loader:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0
| | | +--- androidx.core:core:1.0.0 (*)
| | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0
| | | | +--- androidx.arch.core:core-runtime:2.0.0
| | | | | +--- androidx.annotation:annotation:1.0.0
| | | | | \--- androidx.arch.core:core-common:2.0.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0
| | | | | +--- androidx.lifecycle:lifecycle-common:2.0.0 (*)
| | | | | +--- androidx.arch.core:core-common:2.0.0 (*)
| | | | | \--- androidx.arch.core:core-runtime:2.0.0 (*)
| | | | \--- androidx.arch.core:core-common:2.0.0 (*)
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0
| | | \--- androidx.annotation:annotation:1.0.0
| | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
| | | \--- androidx.annotation:annotation:1.0.0
| | \--- androidx.print:print:1.0.0
| | \--- androidx.annotation:annotation:1.0.0
| +--- androidx.fragment:fragment:1.0.0
| | +--- androidx.core:core:1.0.0 (*)
| | +--- androidx.legacy:legacy-support-core-ui:1.0.0
| | | +--- androidx.annotation:annotation:1.0.0
| | | +--- androidx.core:core:1.0.0 (*)
| | | +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| | | +--- androidx.customview:customview:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | \--- androidx.core:core:1.0.0 (*)
| | | +--- androidx.viewpager:viewpager:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | +--- androidx.core:core:1.0.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | +--- androidx.core:core:1.0.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.drawerlayout:drawerlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | +--- androidx.core:core:1.0.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | +--- androidx.core:core:1.0.0 (*)
| | | | \--- androidx.customview:customview:1.0.0 (*)
| | | +--- androidx.interpolator:interpolator:1.0.0
| | | | \--- androidx.annotation:annotation:1.0.0
| | | +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | +--- androidx.core:core:1.0.0 (*)
| | | | \--- androidx.interpolator:interpolator:1.0.0 (*)
| | | +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
| | | | +--- androidx.annotation:annotation:1.0.0
| | | | \--- androidx.core:core:1.0.0 (*)
| | | \--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
| | +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| | +--- androidx.annotation:annotation:1.0.0
| | +--- androidx.loader:loader:1.0.0 (*)
| | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 (*)
| +--- androidx.vectordrawable:vectordrawable:1.0.0
| | +--- androidx.annotation:annotation:1.0.0
| | \--- androidx.core:core:1.0.0 (*)
| \--- androidx.vectordrawable:vectordrawable-animated:1.0.0
| +--- androidx.vectordrawable:vectordrawable:1.0.0 (*)
| \--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
+--- androidx.annotation:annotation:1.0.0
+--- androidx.core:core:1.0.0 (*)
+--- androidx.collection:collection:1.0.0 (*)
+--- androidx.lifecycle:lifecycle-runtime:2.0.0 (*)
+--- androidx.lifecycle:lifecycle-common:2.0.0 (*)
+--- androidx.arch.core:core-common:2.0.0 (*)
+--- androidx.versionedparcelable:versionedparcelable:1.0.0 (*)
+--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
+--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
+--- androidx.documentfile:documentfile:1.0.0 (*)
+--- androidx.loader:loader:1.0.0 (*)
+--- androidx.lifecycle:lifecycle-livedata:2.0.0 (*)
+--- androidx.arch.core:core-runtime:2.0.0 (*)
+--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 (*)
+--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 (*)
+--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0 (*)
+--- androidx.print:print:1.0.0 (*)
+--- androidx.fragment:fragment:1.0.0 (*)
+--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
+--- androidx.customview:customview:1.0.0 (*)
+--- androidx.viewpager:viewpager:1.0.0 (*)
+--- androidx.coordinatorlayout:coordinatorlayout:1.0.0 (*)
+--- androidx.drawerlayout:drawerlayout:1.0.0 (*)
+--- androidx.slidingpanelayout:slidingpanelayout:1.0.0 (*)
+--- androidx.interpolator:interpolator:1.0.0 (*)
+--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 (*)
+--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0 (*)
+--- androidx.vectordrawable:vectordrawable:1.0.0 (*)
+--- androidx.vectordrawable:vectordrawable-animated:1.0.0 (*)
+--- com.google.android.gms:play-services-base:17.0.0
| +--- androidx.collection:collection:1.0.0 (*)
| +--- androidx.core:core:1.0.0 (*)
| +--- androidx.fragment:fragment:1.0.0 (*)
| +--- com.google.android.gms:play-services-basement:17.0.0
| | +--- androidx.collection:collection:1.0.0 (*)
| | +--- androidx.core:core:1.0.0 (*)
| | \--- androidx.fragment:fragment:1.0.0 (*)
| \--- com.google.android.gms:play-services-tasks:17.0.0
| \--- com.google.android.gms:play-services-basement:17.0.0 (*)
+--- com.google.android.gms:play-services-basement:17.0.0 (*)
+--- com.google.android.gms:play-services-tasks:17.0.0 (*)
+--- androidx.multidex:multidex:2.0.0
+--- com.squareup.okhttp3:okhttp:3.12.1
| \--- com.squareup.okio:okio:1.15.0
+--- com.squareup.okio:okio:1.15.0
+--- com.facebook.react:react-native:0.59.8
| +--- com.facebook.infer.annotation:infer-annotation:0.11.2
| | \--- com.google.code.findbugs:jsr305:3.0.1 -> 3.0.2
| +--- javax.inject:javax.inject:1
| +--- com.facebook.fresco:fresco:1.10.0
| | +--- com.facebook.fresco:fbcore:1.10.0
| | +--- com.facebook.fresco:drawee:1.10.0
| | | +--- com.facebook.fresco:fbcore:1.10.0
| | | \--- com.facebook.fresco:imagepipeline:1.10.0
| | | +--- com.facebook.fresco:imagepipeline-base:1.10.0
| | | | +--- com.facebook.soloader:soloader:0.5.0 -> 0.6.0
| | | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | | \--- com.facebook.fresco:fbcore:1.10.0
| | | +--- com.facebook.soloader:soloader:0.5.0 -> 0.6.0
| | | +--- com.parse.bolts:bolts-tasks:1.4.0
| | | \--- com.facebook.fresco:fbcore:1.10.0
| | +--- com.facebook.fresco:imagepipeline:1.10.0 (*)
| | \--- com.facebook.soloader:soloader:0.5.0 -> 0.6.0
| +--- com.facebook.fresco:imagepipeline-okhttp3:1.10.0
| | +--- com.squareup.okhttp3:okhttp:3.10.0 -> 3.12.1 (*)
| | +--- com.facebook.fresco:fbcore:1.10.0
| | \--- com.facebook.fresco:imagepipeline:1.10.0 (*)
| +--- com.facebook.soloader:soloader:0.6.0
| +--- com.google.code.findbugs:jsr305:3.0.2
| +--- com.squareup.okhttp3:okhttp:3.12.1 (*)
| +--- com.squareup.okhttp3:okhttp-urlconnection:3.12.1
| | \--- com.squareup.okhttp3:okhttp:3.12.1 (*)
| +--- com.squareup.okio:okio:1.15.0
| \--- androidx.appcompat:appcompat:1.0.0 (*)
+--- com.facebook.infer.annotation:infer-annotation:0.11.2 (*)
+--- com.google.code.findbugs:jsr305:3.0.2
+--- javax.inject:javax.inject:1
+--- com.facebook.fresco:fresco:1.10.0 (*)
+--- com.facebook.fresco:fbcore:1.10.0
+--- com.facebook.fresco:drawee:1.10.0 (*)
+--- com.facebook.fresco:imagepipeline:1.10.0 (*)
+--- com.facebook.fresco:imagepipeline-base:1.10.0 (*)
+--- com.facebook.soloader:soloader:0.6.0
+--- com.parse.bolts:bolts-tasks:1.4.0
+--- com.facebook.fresco:imagepipeline-okhttp3:1.10.0 (*)
+--- com.squareup.okhttp3:okhttp-urlconnection:3.12.1 (*)
+--- androidx.legacy:legacy-support-v4:1.0.0
| +--- androidx.core:core:1.0.0 (*)
| +--- androidx.media:media:1.0.0
| | +--- androidx.annotation:annotation:1.0.0
| | +--- androidx.core:core:1.0.0 (*)
| | \--- androidx.versionedparcelable:versionedparcelable:1.0.0 (*)
| +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
| +--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
| \--- androidx.fragment:fragment:1.0.0 (*)
+--- androidx.media:media:1.0.0 (*)
+--- com.google.firebase:firebase-core:16.0.8
| \--- com.google.firebase:firebase-analytics:16.4.0
| +--- com.google.android.gms:play-services-measurement:16.4.0
| | +--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| | +--- com.google.android.gms:play-services-measurement-base:[16.4.0] -> 16.4.0
| | | \--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| | +--- com.google.android.gms:play-services-measurement-impl:[16.4.0] -> 16.4.0
| | | +--- com.google.android.gms:play-services-ads-identifier:16.0.0
| | | | \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | | +--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| | | +--- com.google.android.gms:play-services-measurement-base:[16.4.0] -> 16.4.0 (*)
| | | \--- com.google.android.gms:play-services-stats:16.0.1
| | | \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | \--- com.google.android.gms:play-services-stats:16.0.1 (*)
| +--- com.google.android.gms:play-services-measurement-api:16.4.0
| | +--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| | +--- com.google.android.gms:play-services-measurement-base:[16.4.0] -> 16.4.0 (*)
| | +--- com.google.android.gms:play-services-measurement-impl:[16.4.0] -> 16.4.0 (*)
| | +--- com.google.android.gms:play-services-measurement-sdk-api:[16.4.0] -> 16.4.0
| | | +--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| | | \--- com.google.android.gms:play-services-measurement-base:[16.4.0] -> 16.4.0 (*)
| | +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| | +--- com.google.firebase:firebase-common:16.0.3 -> 16.1.0
| | | +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | | +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| | | \--- com.google.auto.value:auto-value-annotations:1.6
| | +--- com.google.firebase:firebase-iid:17.0.3
| | | +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | | +--- com.google.android.gms:play-services-stats:16.0.1 (*)
| | | +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| | | +--- com.google.firebase:firebase-common:16.0.3 -> 16.1.0 (*)
| | | \--- com.google.firebase:firebase-iid-interop:16.0.1
| | | +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| | | \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | \--- com.google.firebase:firebase-measurement-connector:17.0.1
| | \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| \--- com.google.android.gms:play-services-measurement-sdk:16.4.0
| +--- com.google.android.gms:play-services-basement:16.2.0 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-measurement-base:[16.4.0] -> 16.4.0 (*)
| +--- com.google.android.gms:play-services-measurement-impl:[16.4.0] -> 16.4.0 (*)
| \--- com.google.android.gms:play-services-measurement-sdk-api:[16.4.0] -> 16.4.0 (*)
+--- com.google.firebase:firebase-analytics:16.4.0 (*)
+--- com.google.android.gms:play-services-measurement:16.4.0 (*)
+--- com.google.android.gms:play-services-measurement-base:16.4.0 (*)
+--- com.google.android.gms:play-services-measurement-impl:16.4.0 (*)
+--- com.google.android.gms:play-services-ads-identifier:16.0.0 (*)
+--- com.google.android.gms:play-services-stats:16.0.1 (*)
+--- com.google.android.gms:play-services-measurement-api:16.4.0 (*)
+--- com.google.android.gms:play-services-measurement-sdk-api:16.4.0 (*)
+--- com.google.firebase:firebase-common:16.1.0 (*)
+--- com.google.auto.value:auto-value-annotations:1.6
+--- com.google.firebase:firebase-iid:17.0.3 (*)
+--- com.google.firebase:firebase-iid-interop:16.0.1 (*)
+--- com.google.firebase:firebase-measurement-connector:17.0.1 (*)
+--- com.google.android.gms:play-services-measurement-sdk:16.4.0 (*)
+--- com.google.firebase:firebase-auth:16.2.1
| +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-basement:16.1.0 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-flags:16.0.1
| | +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| | \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| +--- com.google.firebase:firebase-auth-interop:16.0.1
| | +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| | +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| | +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| | \--- com.google.firebase:firebase-common:16.0.3 -> 16.1.0 (*)
| \--- com.google.firebase:firebase-common:16.0.3 -> 16.1.0 (*)
+--- com.google.android.gms:play-services-flags:16.0.1 (*)
+--- com.google.firebase:firebase-auth-interop:16.0.1 (*)
+--- com.google.firebase:firebase-firestore:18.2.0
| +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| +--- com.google.firebase:firebase-auth-interop:16.0.1 (*)
| +--- com.google.firebase:firebase-common:16.1.0 (*)
| +--- com.google.firebase:firebase-database-collection:16.0.1
| +--- com.google.firebase:protolite-well-known-types:16.0.1
| | \--- com.google.protobuf:protobuf-lite:3.0.1
| +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
| +--- com.squareup.okhttp:okhttp:2.7.5
| | \--- com.squareup.okio:okio:1.6.0 -> 1.15.0
| +--- io.grpc:grpc-android:1.16.1
| | \--- io.grpc:grpc-core:[1.16.1] -> 1.16.1
| | +--- io.grpc:grpc-context:1.16.1
| | +--- com.google.code.gson:gson:2.7
| | +--- com.google.errorprone:error_prone_annotations:2.2.0
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | +--- org.codehaus.mojo:animal-sniffer-annotations:1.17
| | +--- com.google.guava:guava:26.0-android
| | | +--- org.checkerframework:checker-compat-qual:2.5.2
| | | \--- com.google.j2objc:j2objc-annotations:1.1
| | +--- io.opencensus:opencensus-api:0.12.3
| | | \--- com.google.errorprone:error_prone_annotations:2.2.0
| | \--- io.opencensus:opencensus-contrib-grpc-metrics:0.12.3
| | +--- com.google.errorprone:error_prone_annotations:2.2.0
| | \--- io.opencensus:opencensus-api:0.12.3 (*)
| +--- io.grpc:grpc-okhttp:1.16.1
| | +--- io.grpc:grpc-core:[1.16.1] -> 1.16.1 (*)
| | +--- com.squareup.okhttp:okhttp:2.5.0 -> 2.7.5 (*)
| | \--- com.squareup.okio:okio:1.13.0 -> 1.15.0
| +--- io.grpc:grpc-protobuf-lite:1.16.1
| | +--- io.grpc:grpc-core:1.16.1 (*)
| | +--- com.google.protobuf:protobuf-lite:3.0.1
| | \--- com.google.guava:guava:26.0-android (*)
| \--- io.grpc:grpc-stub:1.16.1
| \--- io.grpc:grpc-core:1.16.1 (*)
+--- com.google.firebase:firebase-database-collection:16.0.1
+--- com.google.firebase:protolite-well-known-types:16.0.1 (*)
+--- com.google.protobuf:protobuf-lite:3.0.1
+--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
+--- com.squareup.okhttp:okhttp:2.7.5 (*)
+--- io.grpc:grpc-android:1.16.1 (*)
+--- io.grpc:grpc-core:1.16.1 (*)
+--- io.grpc:grpc-context:1.16.1
+--- com.google.code.gson:gson:2.7
+--- com.google.errorprone:error_prone_annotations:2.2.0
+--- org.codehaus.mojo:animal-sniffer-annotations:1.17
+--- com.google.guava:guava:26.0-android (*)
+--- org.checkerframework:checker-compat-qual:2.5.2
+--- com.google.j2objc:j2objc-annotations:1.1
+--- io.opencensus:opencensus-api:0.12.3 (*)
+--- io.opencensus:opencensus-contrib-grpc-metrics:0.12.3 (*)
+--- io.grpc:grpc-okhttp:1.16.1 (*)
+--- io.grpc:grpc-protobuf-lite:1.16.1 (*)
+--- io.grpc:grpc-stub:1.16.1 (*)
+--- com.google.firebase:firebase-storage:16.1.0
| +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
| +--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
| \--- com.google.firebase:firebase-common:16.1.0 (*)
+--- com.crashlytics.sdk.android:crashlytics:2.9.9
| +--- io.fabric.sdk.android:fabric:1.4.8
| +--- com.crashlytics.sdk.android:beta:1.2.10
| +--- com.crashlytics.sdk.android:crashlytics-core:2.6.8
| | +--- io.fabric.sdk.android:fabric:1.4.8
| | \--- com.crashlytics.sdk.android:answers:1.4.7
| | \--- io.fabric.sdk.android:fabric:1.4.8
| \--- com.crashlytics.sdk.android:answers:1.4.7 (*)
+--- io.fabric.sdk.android:fabric:1.4.8
+--- com.crashlytics.sdk.android:beta:1.2.10
+--- com.crashlytics.sdk.android:crashlytics-core:2.6.8 (*)
+--- com.crashlytics.sdk.android:answers:1.4.7 (*)
+--- project :react-native-background-fetch
+--- project :react-native-background-geolocation
+--- project :react-native-image-crop-picker
+--- project :react-native-firebase
| +--- com.facebook.react:react-native:+ -> 0.59.8 (*)
| \--- com.android.support:support-v4:28.0.0 -> androidx.legacy:legacy-support-v4:1.0.0 (*)
+--- project :react-native-image-picker
+--- project :react-native-svg
+--- project :react-native-maps
+--- project :react-native-vector-icons
+--- project :@react-native-community_async-storage
+--- project :react-native-gesture-handler
+--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.0.0 (*)
+--- com.facebook.react:react-native:+ -> 0.59.8 (*)
+--- com.google.android.gms:play-services-base:16.1.0 -> 17.0.0 (*)
+--- com.google.firebase:firebase-core:16.0.8 (*)
+--- com.google.firebase:firebase-auth:16.2.1 (*)
+--- com.google.firebase:firebase-firestore:18.2.0 (*)
+--- com.google.firebase:firebase-storage:16.1.0 (*)
\--- com.crashlytics.sdk.android:crashlytics:2.9.9 (*)
@dakkafex In your ext block in android/build.gradle, try setting googlePlayServicesLocationVersion = "16.0.0"
that did the trick.
Worth noting that in the <=0.59 section in the instructions?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
Most helpful comment
@dakkafex In your
extblock inandroid/build.gradle, try settinggooglePlayServicesLocationVersion = "16.0.0"