我已经更改了我的gradle设置,但是却收到一条错误消息,指出存在版本冲突,但是代码中没有错误错误:请通过更新google-services插件的版本来解决版本冲突(有关最新版本的信息,请访问https://bintray.com/android/android-tools/com.google.gms.google-services/)或将com.google.android.gms的版本更新为15.0.1。产品级别build.gradle:// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {repositories { jcenter() google()}dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:3.1.2'}}allprojects {repositories { jcenter() mavenCentral() maven { url 'https://maven.google.com' } google()}}task clean(type: Delete) {delete rootProject.buildDir}
2 回答
慕田峪4524236
TA贡献1875条经验 获得超5个赞
试试这个
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
变成
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
添加回答
举报
0/150
提交
取消