Could not find com.google.firebase:firebase-core:9.0.0. After attempting to build for Android.
See original GitHub issueI’ve followed the Docs to install the firebase plugin. I have installed the newest versions of the Google Play Services (rev 32) and Google Repository (rev 32) through the SDK Manager.
My TNS version is 2.2.1 and tns-android is 2.2.0
In ~/platforms/android/build.gradle I have:
dependencies {
classpath "com.android.tools.build:gradle:2.1.2"
classpath "com.google.gms:google-services:3.0.0"
}
Along with this at the bottom of the file:
apply plugin: "com.google.gms.google-services"
The platforms directory also contains my google-services.json file. Yet when ever I run ‘tns build android’ I get the below error, Any guidance would be greatly appreciated.:
Could not resolve all dependencies for configuration ‘:_F0F1F2F3F4DebugCompile’.
Could not find com.google.firebase:firebase-core:9.0.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom
https://jcenter.bintray.com/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.jar
file:/Users/stevenstratis/Documents/Developer/CareGiver/platforms/android/libs/aar/firebase-core-9.0.0.jar
file:/Users/stevenstratis/Documents/Developer/CareGiver/platforms/android/libs/aar/firebase-core.jar
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.pom
file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/firebase/firebase-core/9.0.0/firebase-core-9.0.0.jar
Required by:
:CareGiver:unspecified
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top GitHub Comments
I got this same error and it turned out that I had two Android SDK directories. The one I was updating from Android Studio was not reflected in the ANDROID_HOME folder as set in ~/.profile on my Mac. Worked fine after I fixed this.
@sarvagayatri 9.6.1 is the latest version and part of Google Repository 36. The error says the latest version it can find is 9.4.0 so it looks like the SDK manager saves its dependencies in a different folder. Can you hover over the Google Repository in the SDK manager (see screenshot) to figure out the path? Then take a look and see if 9.6.x is there. Then compare that path with the paths you pasted as part of your stacktrace…