instamobile / react-native-starter-kit

React Native Starter Kit with Firebase Auth and Facebook Login
https://instamobile.io
453 stars 81 forks source link

Failed to compile #5

Open ice16 opened 5 years ago

ice16 commented 5 years ago

When I try to compile, I get this error: FAILURE: Build failed with an exception.

Failed to notify dependency resolution listener.
> 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.2.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
> The library com.google.firebase:firebase-analytics is being requested by various other libraries at [[16.0.3,16.0.3]], but resolves to 16.4.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Can I know how to solve this?

flpputsch commented 5 years ago

You can fix this putting this on end of your android\app\build.gradle com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true Refence: https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari