React-native-firebase: Could not find firebase-iid-interop.aar

Created on 31 Oct 2018  路  3Comments  路  Source: invertase/react-native-firebase

Versions:
react-native:0.57.0
react-native-firebase:5.0
I want to implement FCM push notification in my react native Project, I follow the all steps as mentioned here
for initial setup when I am embedding android native code through this android code but code is not running getting error.
` What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not find firebase-iid-interop.aar (com.google.firebase:firebase-iid-interop:16.0.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-iid-interop/16.0.0/firebase-iid-interop-16.0.0.aar
`
Sorry I am new in react native development

Most helpful comment

Have you added google() above jcenter()?

`
allprojects {

repositories {

    mavenLocal()

    google() // <-- Add this line above jcenter

    jcenter()

    maven {

        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm

        url "$rootDir/../node_modules/react-native/android"

    }

}

}
`

in android/build.gradle

All 3 comments

Have you added google() above jcenter()?

`
allprojects {

repositories {

    mavenLocal()

    google() // <-- Add this line above jcenter

    jcenter()

    maven {

        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm

        url "$rootDir/../node_modules/react-native/android"

    }

}

}
`

in android/build.gradle

Thanks mate, Issue was resolved, but after solving this issue facing this

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:dependencies'.
> The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[10.2.4,10.2.4], [15.0.1,15.0.1]], but resolves to 15.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Solved this issue by #1155

I had to clear the gradle cache from homedir/.gradle/caches for it to start working again. The gradle cache had just frozen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joecaraccio picture joecaraccio  路  3Comments

mahyarr picture mahyarr  路  3Comments

dgruseck picture dgruseck  路  3Comments

jonaseck2 picture jonaseck2  路  3Comments

Damnum picture Damnum  路  3Comments