【问题标题】:Android Studio com.android.gms:google-services:3.0.0 errorAndroid Studio com.android.gms:google-services:3.0.0 错误
【发布时间】:2017-04-23 14:46:52
【问题描述】:

所以我的 app 文件夹中有 .json 文件,并按照 Firebase 网站上的所有说明进行操作,但我仍然收到一条错误消息,提示 AS 找不到 google-services:3.0.0 任何帮助将不胜感激,谢谢。

【问题讨论】:

  • 您必须通过 Android SDK 管理器下载它。
  • 您有最新版本的 google play 服务吗?去SDK Manager看看有没有更新。
  • @mallaudin 我想我有最新版本的 google play 服务,SDK 管理器中没有任何更新。
  • @JaredBurrows 如何通过 SDK 管理器下载它? firebase 说明告诉我从他们的网站下载它并将 .json 文件放在 app 文件夹中
  • @Bob 提到,你的版本名称有错别字。

标签: android firebase gradle


【解决方案1】:

这是com.google.gms:google-services:3.0.0,而不是com.android.gms:google-services:3.0.0

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.1'
    classpath 'com.google.gms:google-services:3.0.0'  // <= HERE

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

【讨论】:

    猜你喜欢
    • 2017-02-22
    • 2017-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多