【问题标题】:Version conflict error In Firebase databaseFirebase 数据库中的版本冲突错误
【发布时间】:2018-09-04 19:09:50
【问题描述】:

请通过更新 google-services 插件的版本(有关最新版本的信息可在 https://bintray.com/android/android-tools/com.google.gms.google-services/ 获得)或将 com.google.android.gms 的版本更新到 11.8.0 来解决版本冲突。 我什么都试过了,还是不行。

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation project(':mysql-connector-java-5.1.45-bin')
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation "com.google.android.gms:play-services-location:15.0.1"
}
apply plugin: 'com.google.gms.google-services'

【问题讨论】:

    标签: firebase android-studio firebase-realtime-database


    【解决方案1】:

    在 root gradle 中将 com.google.gms.google-services 的版本更改为 4.1.0 ,如果它已经不是。

    并在应用级 gradle 中使用最新的 firebase 数据库依赖项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-31
      • 2016-12-26
      • 2017-07-13
      • 2022-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多