【问题标题】:Firebase: Failed To Resolve Error:(26, 13) Failed to resolve: com.google.firebase:firebase-core:9.0.2 [duplicate]Firebase:无法解决错误:(26、13)无法解决:com.google.firebase:firebase-core:9.0.2 [重复]
【发布时间】:2016-06-10 06:21:22
【问题描述】:

我正在使用 Firebase 创建我的第一个应用程序。

我一步步跟着add firebase in my app.

完成所有步骤后,我收到以下错误。

我的 build.gradle 文件:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-messaging:9.0.2'
}


apply plugin: 'com.google.gms.google-services'

我还在项目级别 build.gradle.

中添加了以下行
classpath 'com.google.gms:google-services:3.0.0'

有什么问题,我找不到。有什么帮助吗?

【问题讨论】:

  • 工作室版本是 2.1.2 @Shubhank
  • gradle 版本 2.1.2 @RRR
  • 尝试在您的 sdk 中更新 google 存储库..
  • 你应该检查thisthis
  • 感谢大家,我已按照@RRR 的建议链接更新并标记为重复 :)

标签: android firebase firebase-cloud-messaging


【解决方案1】:

您需要更新 Andriod-SDKExtras 下的 Google Repositorty。 然后同步你的项目,你的项目就会同步成功。

因为 Firebase 9.0.2 更新版本在更新的 Google Repo 之下。

【讨论】:

  • 谢谢。你也是对的。
  • @Deepak Goyal 我正在使用它,但未能调用我的服务来生成令牌 compile 'com.google.firebase:firebase-messaging:9.0.0' compile 'com.google.android.gms:播放服务身份验证:9.0.0'
猜你喜欢
  • 2018-02-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-06
  • 2016-10-09
  • 2018-01-05
相关资源
最近更新 更多