React-native-firebase: Error installing firebase-react

Created on 23 Aug 2017  路  6Comments  路  Source: invertase/react-native-firebase

When trying to intslar the reac firebase always occurs this same error, I tried to download the demo of the project and even still persists someone has already solved, or even install this new version?

Note: I'm starting now in this dependence I tried to use it more nor can I install.

image

Environment

  1. Target Platform ( iOS, Android):
  2. Development Operating System ( Windows 10):
  3. Build tools (Xcode or Android Studio version 2.3, Android SDK version 25.2.5):
  4. React Native version (e.g. 0.45.1): 0.47
  5. RNFirebase Version (e.g. 2.0.2):

Most helpful comment

note if you're running android build tools 3.0.0-beta2+ you can replace maven { url 'https://maven.google.com' } with google()

All 6 comments

Do you have the latest sdks installed on android studio?

yes

@AlexsanderManzoli This error will only occur if you don't have the correct SDKs installed within Android studio. Please check again.

add : maven { url 'https://maven.google.com' } to project as a repository in both the buildscript and repositories blocks:

buildscript {
    ext.kotlin_version = '1.1.3-2'
    repositories {
        jcenter()
        maven { url 'https://maven.google.com' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:3.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven { url 'https://maven.google.com' }
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

note if you're running android build tools 3.0.0-beta2+ you can replace maven { url 'https://maven.google.com' } with google()

It worked, brother, sorry for the delay I ended up getting involved in other projects here

Was this page helpful?
0 / 5 - 0 ratings