React-native-firebase: firebase dependencies error

Created on 3 Oct 2018  路  2Comments  路  Source: invertase/react-native-firebase

Issue

after yesterday's update i cant build my project any more, getting this error The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Environment

  1. Application Target Platform:
    Android

  2. Development Operating System:
    Windows 10

  3. Build Tools:
    Android Studio version 3.2 AI#181.5540.7.32.5014246 built on September 17 2018

  4. Firebase Module:
    database, auth and storage

  5. Are you using typescript?
    No

Most helpful comment

Workaround
I have face the same issue, it is because a recent update from firebase and play services.
Please, update library com.google.android.gms:play-services-base: 15.0.1 to

compileOnly "com.google.android.gms:play-services-base:16.0.1"

also update in app module and add at the end of file next
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
1
2

Notice this is not a fix, most at all if you work with CI tools like appcenter. Guys have to update libraries.

All 2 comments

Workaround
I have face the same issue, it is because a recent update from firebase and play services.
Please, update library com.google.android.gms:play-services-base: 15.0.1 to

compileOnly "com.google.android.gms:play-services-base:16.0.1"

also update in app module and add at the end of file next
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
1
2

Notice this is not a fix, most at all if you work with CI tools like appcenter. Guys have to update libraries.

The versions on master have since been updated. This will land in v5.1.0, of which I've just published the first RC for,

yarn add [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

escobar5 picture escobar5  路  3Comments

ODelibalta picture ODelibalta  路  3Comments

callmejm picture callmejm  路  3Comments

alizahid picture alizahid  路  3Comments

jonaseck2 picture jonaseck2  路  3Comments