Lok*_*ari 6 android google-play-services android-gradle-plugin gradle-plugin
我正在将fire-base集成到我使用这些库的现有项目中
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'
Run Code Online (Sandbox Code Playgroud)
依赖
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
}
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误
Error:Execution failed for task ':app:processDebugGoogleServices'.
Run Code Online (Sandbox Code Playgroud)
请通过更新google-services插件的版本来修复版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/)或将com.google.android.gms的版本更新为9.0.0.
无法弄清楚发生了什么?
我最后在build.gradle中添加了这一行:(Module:app)
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
它开始工作我不知道这背后的概念是什么?
但它正在发挥作用
| 归档时间: |
|
| 查看次数: |
14525 次 |
| 最近记录: |