我正在将fire base集成到使用这些libs的现有项目中

   compile 'com.google.firebase:firebase-auth:9.0.2'
compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.google.android.gms:play-services:9.0.2'

依赖关系
    dependencies {
    classpath 'com.android.tools.build:gradle:2.1.2'
    classpath 'com.google.gms:google-services:3.0.0'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

我发现了这个错误
Error:Execution failed for task ':app:processDebugGoogleServices'.

请通过更新google services插件的版本(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/)或将com.google.android.gms的版本更新为9.0.0来解决版本冲突。
不知道发生了什么??
这是我的游戏服务verison
android - google-services插件无法检测到com.google.android.gms或com.google.firebase的任何版本,将使用默认版本:9.0.0-LMLPHP

最佳答案

我终于在build.gradle中添加了这一行:(模块:app)

 apply plugin: 'com.google.gms.google-services'

它开始工作了我不知道这背后的概念是什么?
但它起作用了

07-24 09:48
查看更多