Android谷歌地图和firebase依赖性问题
我第一次和firebase一起工作在地图上,并且一直停留在依赖性问题上Android谷歌地图和firebase依赖性问题,android,firebase,google-maps,kotlin,dependencies,Android,Firebase,Google Maps,Kotlin,Dependencies,我第一次和firebase一起工作在地图上,并且一直停留在依赖性问题上 Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-ser
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 16.0.1.
但是,下面的问题(为了避免版本冲突)会更新
实现'com.google.android.gms:play services地图:16.0.0'
到
实现'com.google.android.gms:play services地图:16.0.1'
不适合我。
同样,更新
实现'com.google.firebase:firebase auth:16.0.1'
实现'com.google.firebase:firebase数据库:16.0.1'
到
实现'com.google.firebase:firebase auth:16.0.0'
实现'com.google.firebase:firebase数据库:16.0.0'
也不行。这两种情况都给出了相同的错误,即依赖关系不存在。
除此之外,我也尝试过清理和重建这个项目,但效果并不理想。请帮我解决这个问题
BUILD.GRADLE(应用程序)
BUILD.GRADLE(项目)
再经过几个依赖项组合后,转换到3行以下
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
到
为我工作。请添加build.gradle文件的全部内容。请查看更新的问题。感谢您将
classpath'com.google.gms:google services:3.0.0'
替换为classpath'com.google.gms:google services:4.1.0'
不工作。又犯了同样的错误
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
google()
maven { url "https://maven.google.com" }
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.google.firebase:firebase-database:15.0.0'
implementation 'com.google.android.gms:play-services-maps:15.0.0'