The library com.google.android.gms:play-services-basement is being requested by various other libraries
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.
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.