Unable to build latest firebase core library

I used compile 'com.google.firebase:firebase-core:10.0.1' and tried to update my dependencies to compile 'com.google.firebase:firebase-core:11.0.1' , but no luck.

All I get is:

Failed to execute: com.google.firebase: firebase-core: 11.0.1 '

I use google play services 3.1.0

+5
source share
2 answers

I solved this problem by following these steps:

Customize Gradle

build.gradle (Project: {Project_name})

 classpath 'com.android.tools.build:gradle:2.3.1' 

gradle -wrapper.properties

 distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 

Dependency Error Setting

  • Open SDK Manager
  • Select SDK Tools Tab
  • Expand Support Repository
  • Choose Google Repository
  • Update, make sure you have version 54 after the update.
+14
source

Just update your Google repository.

  • Go to SDK Manager
  • Select the Android SDK under Appearance and Behavior
  • Choose SDK Tools
  • Extract the support repository and upgrade the Google repository to 54.
+8
source

Source: https://habr.com/ru/post/1268901/


All Articles