Failed to resolve: com.google.firebase: firebase-core: 11.2.0

When I synchronize the project, I get several problems "Could not be resolved." All of them are associated with fire and game services. I made sure that they are all the same (11.2.0). I also checked, and the latest version for both is 11.2.0. In addition, all other answers to such questions include updating Google services and the repository in the SDK Manager, but mine has already been updated.

enter image description here

enter image description here

Any idea why I can't sync my project?

EDIT - current working solution

// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath 'com.google.gms:google-services:3.0.0' classpath 'com.google.firebase:firebase-plugins:1.0.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } task clean(type: Delete) { delete rootProject.buildDir } 
+69
android android-studio android-gradle google-play-services firebase
Aug 15 '17 at 15:50
source share
7 answers

Add maven { url "https://maven.google.com" } to your root build.gradle file level

 allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } 
+128
Aug 15 '17 at 16:33
source share
β€” -

Services and Firebase are now available through maven.google.com with the release of version 11.2.0 of the Google Play and Firebase services.

Here you can find the official Google Apps document and firebase doc here. .

 allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } } 

If you use the android gradle 3.x plugin, you can also use:

 allprojects { repositories { jcenter() google() } } 
+34
Aug 15 '17 at 17:17
source share

I just fixed the same error by adding a dependency on the underlying kernel .

 implementation 'com.google.firebase:firebase-core:16.0.1' 
+8
Jul 14 '18 at 5:05
source share

The best way to fix this problem is to not use the manual firebase binding method with your application.

I tried to add the latest firebase repository by accessing this Link .

He showed the error "failed to resolve firebase 11.2.0 dependencies"

FireBase recommends adding firebase to your application using FireBase Assistant for Android Studio version 2.2 and higher. Manually adding the last library to the build gradle (module) results in an error, as indicated above.

The Firebase helper added lower versions 10.0.1 automatically depending on the gradle -build module, which is compatible and can be enabled.

Using the Firebase Assistant is a simple and two-step process. For reference, you can use the "Use Firebase Helper" section at the same link mentioned above.

It really worked with my Android Studio 2.3.3. Also, make sure your Google repository is up to date.

+1
Aug 28 '17 at 10:10
source share

With the release of 16.0.0 I had to

  • install most of my google game services libraries for analytics 15.0.0 and tagmanager should be 16.0.0
  • set the versions of my supporting library to 27.1.1
  • firebase-core up to 16.0.0

Built against sdk 27

Additional changes:

I also had to upgrade my analytics to 16.0.0

  • implementation of "com.google.android.gms: play-services-analytics: 16.0.0"

Some of the independent versions that Android recently made, I guess. You may need to try moving up or down the version in google play services and firebase libraries

0
Jun 12 '18 at 1:16
source share

There was this question, and none of the previous answers helped me. It turned out that I needed to update "com.google.gms: google-services: ..." in my settings.gradle.

0
Dec 05 '18 at 22:35
source share

Solved my problem by implementing this

implementation of "com.google.firebase: firebase-core: 16.0.6"

0
Jan 16 '19 at 12:20
source share



All Articles