【发布时间】:2016-09-26 17:02:18
【问题描述】:
我无法在 android studio 上设置更新版本的 firebase。 我已经在站点 firebase 上创建了项目的 json 文件并将其复制到项目中,并在 gradle 中处理行之后:
buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
}
apply plugin: 'com.android.application'
android {
// ...
}
dependencies {
compile 'com.google.firebase:firebase-core:9.0.1'
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
我收到以下错误:
failed to resolve: compile 'com.google.firebase:firebase-core:9.0.0'
我该如何解决?
【问题讨论】:
-
尝试在 SDK 中更新 Google Play 服务。
标签: android android-studio firebase build.gradle