$ 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.
What went wrong:
A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
More than one variant of project :react-native-firebase matches the consumer attributes:
Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
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.
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
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.
What went wrong: A problem occurred configuring project ':app'.
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
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