invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.66k stars 2.21k forks source link

More than one variant of project :react-native-firebase matches the consumer attributes #1144

Closed baselbj closed 6 years ago

baselbj commented 6 years ago

Hi I just installed a fresh new react project and tried to add react-native-firebase following the steps in the documentation (https://rnfirebase.io/docs/v4.2.x/installation/android).

$ react-native run-android Scanning folders for symlinks in E:\My Work\MobileApps\reactProjects\AwesomeProject\node_modules (57ms) Starting JS server... Building and installing the app on the device (cd android && gradlew.bat installDebug)...

FAILURE: Build failed with an exception.

BUILD FAILED in 4s Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html

baselbj commented 6 years ago

I found the issue I was using: classpath 'com.google.gms:google-services:3.3.1'

instead of : classpath 'com.google.gms:google-services:3.2.1'