question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find com.google.firebase:firebase-core:9.0.0. After attempting to build for Android.

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
wdulincommented, Sep 17, 2016

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.

5reactions
EddyVerbruggencommented, Oct 16, 2016

@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…

screen shot 2016-10-16 at 10 24 34
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find com.google.firebase:firebase-core:9.0.0?
In your android/build.gradle in your repositories section, try moving google() ABOVE jcenter().
Read more >
Google app won't display search results - Android
If you don't get search results in the Google app, you might need to change some settings. You can resolve errors like: ......
Read more >
Known issues with Android Studio and Android Gradle Plugin
If Studio still doesn't start after trying this workaround, see Studio doesn't ... This will cause the Build System to not see any...
Read more >
Add Firebase to your Android project
If you don't already have an Android project and just want to try out a Firebase ... and it cannot be changed for...
Read more >
Failed to resolve: com.google.firebase:firebase-core:9.0.0
You no longer need to use the Android SDK manager to import these dependencies. In your root build.gradle file add the repo: allprojects...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found