react-native-connectivity-status icon indicating copy to clipboard operation
react-native-connectivity-status copied to clipboard

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

Open ghost opened this issue 6 years ago • 1 comments

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.

ghost avatar Jul 30 '19 10:07 ghost

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.

federicoboschini avatar Jul 30 '19 11:07 federicoboschini