我正在将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
最佳答案
我终于在build.gradle中添加了这一行:(模块:app)
apply plugin: 'com.google.gms.google-services'
它开始工作了我不知道这背后的概念是什么?
但它起作用了