【发布时间】: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 存储库..
-
感谢大家,我已按照@RRR 的建议链接更新并标记为重复 :)
标签: android firebase firebase-cloud-messaging