Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

The library com.google.android.gms:play-services-basement is being requested by various other libraries #8

Open
ghost opened this issue Jul 30, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 30, 2019

My project react native version is 0.57.5
react version is 16.6.0-alpha.8af6728
I am using react-native-connectivity-status for version "1.5.1".

When i install react-native-connectivity-status library and try to run android build I receive following 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 12.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

I tried following things.

compile (project(':react-native-connectivity-status')) {
exclude group: 'com.google.android.gms', module: "play-services-basement"
}

compile ("com.google.android.gms:play-services-basement:15.0.1") {
force = true
}

I am stuck in this issue please help.

@federicoboschini
Copy link
Member

Hi @vishubhardwaj911

seems that some other library you are using in your project has native dependencies related to google play services and they are significantly outdated. Updating those library should solve the problem.

Unfortunately, play-services and firebase native dependencies conflicts are difficult to manage in a react-native project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant