今天,由于配置问题,Android Studio 停止正常同步。
Could not resolve all files for configuration ‘:app:providerRepositoryDebugCompileClasspath’. Could not find firebase-analytics-impl.aar (com.google.firebase:firebase-analytics-impl:15.0.2). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-analytics-impl/15.0.2/firebase-analytics-impl-15.0.2.aar Could not find play-services-flags.aar (com.google.android.gms:play-services-flags:15.0.1). Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-flags/15.0.1/play-services-flags-15.0.1.aar
这两个文件存在,我可以通过浏览器下载。
我通过将 firebase 核心更新到 16.0.0 解决了第一个问题。 (未能解决:firebase-analytics-impl),但我无法修复第二个。
Android Studio 出了什么问题? 昨天还不错。
请不要建议从 gms 添加标志库。我已经试过了。
最佳答案
已通过更改 PROJECT build.grade 中的 repos 顺序修复:
代替
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
}
放
allprojects {
repositories {
maven { url "https://maven.google.com" }
jcenter()
}
}
我认为有人提出了这个建议,但我再也看不到他的回答了。
很奇怪的问题。
关于android - 无法解析 : play-services-flags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50563297/