react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

Could not find firebase-iid-interop.aar

Open hussainahmad opened this issue 8 years ago • 3 comments

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

hussainahmad avatar Oct 31 '18 06:10 hussainahmad

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

w4ndry avatar Oct 31 '18 14:10 w4ndry

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

hussainahmad avatar Nov 01 '18 06:11 hussainahmad

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

lassikin avatar Jan 29 '19 05:01 lassikin