当同步我的项目时,我收到多个“无法解决”问题。它们都是与Firebase和游戏服务相关的。我确信他们都是一样的(11.2.0)。我也检查过,两者的最新版本都是11.2.0。此外,类似问题的所有其他答案都涉及在SDK管理器中更新Google Play服务和存储库,但我的更新已经是最新的。无法解决:com.google.firebase:firebase-core:11.2.0
任何想法,为什么我不能同步我的项目?
编辑 - 当前工作液
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.google.firebase:firebase-plugins:1.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
发布您的项目级build.gradle文件。 –
@BobSnyder检查我的编辑。 – rigotre
将'google()'移动到'allprojects/repositories' –