【问题标题】:Firebase + Google Play Services = Error: "com.google.android.gms:play-services-basement ... [[15.0.1,15.0.1]], but resolves to 16.0.1"Firebase + Google Play 服务 = 错误:“com.google.android.gms:play-services-basement ... [[15.0.1,15.0.1]],但解析为 16.0.1”
【发布时间】:2018-11-18 02:33:47
【问题描述】:

我在使用 vanilla Android(无 React voodoo)时遇到了我自己的以下错误版本,而其他 hacky 解决方案,即this one,对我不起作用,所以我发布了什么。

实施firebase-core后

implementation 'com.google.firebase:firebase-core:16.0.1'

在我当前使用的 Android 项目中

implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'

对于 Google Play 定位服务,我收到以下错误:

库 com.google.android.gms:play-services-basement 正在 [[15.0.1,15.0.1]] 的各种其他库请求,但解析为 16.0.1

【问题讨论】:

    标签: android firebase google-play


    【解决方案1】:

    我刚刚更改了我的 app/build.gradle 中的行:

    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.google.android.gms:play-services-maps:16.0.0'
    

    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    

    做了一个Build > Clean Project

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-19
      • 2018-12-31
      • 2019-04-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-20
      • 1970-01-01
      相关资源
      最近更新 更多