无法解析:com.google.firebase:firebase-core:9.0.0 [英] Failed to resolve: com.google.firebase:firebase-core:9.0.0

查看:558
本文介绍了无法解析:com.google.firebase:firebase-core:9.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从旧域名升级到新的google firebase域名时,出现以下错误。


未能解决:com。 google.firebase:firebase-core:9.0.0

我遵循






从IntelliJ IDEA开始:



截至2017年4月,Google Play服务和版本库的最新版本如下所列。 b
$ ol Packages 面板下,找到<$ c $> SDK Manager 。选择并安装 Google Play服务(rev 39)和<$ c $> 。 c> Google Repository (rev 46)。请参阅下面的图片。

  • 执行Gradle项目同步 Build 项目。


  • I get the following error while upgrading a firebase project from old domain to new google firebase domain.

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

    I followed the steps mentioned on the Firebase documentation, in the section Add Firebase to your Android Project, topic Available libraries.

    What are my options to resolve this error?

    解决方案

    Update Aug 2017

    As of version 11.2.0 Firebase and Google Play services dependencies are available via Google's Maven Repo. You no longer need to use the Android SDK manager to import these dependencies.

    In your root build.gradle file add the repo:

    allprojects {
      repositories {
        // ...
        maven { url "https://maven.google.com" }
      }
    }
    

    If you are using gradle 4.0 or higher you can replace maven { url "https://maven.google.com" } with just google().


    The 9.0.0 version of Firebase was built using Google Play services 9.0 and is now available under the new packaging com.google.firebase:*

    See Release Notes for Google Play services 9.0 https://developers.google.com/android/guides/releases#may_2016_-_v90

    New versions of packages Google Play Services (rev 30) and Google Repository (rev 26) were just released in the SDK manager so it's likely you just need to update.


    Downloading Google Play Services and Google Repository

    From Android Studio:

    1. Click Tools > Android > SDK Manager.
    2. Click into the SDK Tools tab.
    3. Select and install Google Play Services (rev 30) and Google Repository (rev 26). See the image below.
    4. Sync and Build your project.


    From IntelliJ IDEA:

    As of April 2017, the latest versions of Google Play Services and Repository are listed below.

    1. Click Tools > Android > SDK Manager.
    2. Under the Packages panel, Look for the Extras.
    3. Select and install Google Play Services (rev 39) and Google Repository (rev 46). See the image below.
    4. Perform a gradle project sync and Build your project.

    这篇关于无法解析:com.google.firebase:firebase-core:9.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆