Problem with react-native-firebase when running on android

0

I'm working on react-native, I've installed react-native-firebase , on iOS I had no problem but I'm trying to react -native run-android, and this is the error that returns:

I followed all the steps of the documentation, I do not know what I could have done wrong, I try to follow the steps recommended by WARNING updating the android / app / build.gradle, like this:

compileSdkVersion 27
buildToolsVersion "27.0.3"

And then I get this error:

This is my package.json:

    
asked by Yeisom Gomez 09.07.2018 в 16:22
source

2 answers

1

Hello you have a problem with link references to be able to solve this error after running npm install react-native-firebase you could use react-native link react-native-firebase but in most cases the link dependencies are not good. I recommend that all this processes you do from Android Studio and not from your conventional text editor, follow the indications of this official installation guide react-native-firebase < a href="https://rnfirebase.io/docs/v4.3.x/installation/android"> link

    
answered by 13.08.2018 в 06:40
0

complemented the response of @George Rozo, it is highly recommended that you use Android Studio, since sometimes the problem may not be the installed packages but maybe some configuration with your project.

I recommend you review with android studio and rectify the following:

compile to place it by Implementation, similarly verify the version of sdk with which your packages are working.

and try to install the npm i react-native-firebase package again

    
answered by 13.08.2018 в 06:55