React-native-firebase: build error when ad crashlytic

Created on 11 May 2018  路  4Comments  路  Source: invertase/react-native-firebase

Issue

Environment

  1. Application Target Platform: android

  1. Development Operating System: ios
  1. Build Tools: build:gradle:2.2.3

  1. React Native version: 55
  1. RNFirebase Version: com.crashlytics.sdk.android:crashlytics:2.9.1
  1. Firebase Module:
    com.crashlytics.sdk.android:crashlytics:2.9.1

Could not resolve all dependencies for configuration ':classpath'.
Could not find io.fabric.tools:gradle:1.25.1.
Searched in the following locations:
https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.1/gradle-1.25.1.pom
https://jcenter.bintray.com/io/fabric/tools/gradle/1.25.1/gradle-1.25.1.jar

Most helpful comment

it needs to be in the buildscript section, not the allprojects section

All 4 comments

Please check you have added:

        maven {
            url 'https://maven.fabric.io/public'
        }

as explained in the installation notes: https://rnfirebase.io/docs/v4.1.x/crashlytics/android

already added, but still error.

    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url "$rootDir/../node_modules/react-native/android"
    } 

    maven {
        url 'https://maven.google.com'
    }

    maven { 
        url "https://jitpack.io" 
    }

    maven {
        url 'https://maven.fabric.io/public'
    }

it needs to be in the buildscript section, not the allprojects section

Thank you @chrisbianca , It work.

Was this page helpful?
0 / 5 - 0 ratings