【发布时间】:2017-10-03 11:36:17
【问题描述】:
这些是我的应用程序 gradle 文件中的依赖项。我该如何解决这个错误?
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
androidTestCompile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-database:11.4.0'
compile 'com.google.firebase:firebase-crash:11.4.0'
compile 'com.google.firebase:firebase-auth:11.4.0'
androidTestCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
您是否已将 googleService.json 粘贴到您的项目中
-
是的,我已将 JSON 文件粘贴到我的应用文件夹中。
-
然后尝试下面提到的解决方案
-
@SayanSahoo 欢迎来到 Stack Overflow。检查下面给出的答案,如果它解决了您的问题,则将最佳答案标记为已接受。