【问题标题】:The library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1. - f[[15.0.1,15.0.1]] 的各种其他库正在请求库 com.google.android.gms:play-services-base,但解析为 16.0.1。 - F
【发布时间】:2018-10-29 09:10:37
【问题描述】:

那些我的依赖项,我绑定了这个:com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

但还是有同样的问题

 dependencies {
          implementation fileTree(include: '*.jar', dir: 'libs')
          // SUB-PROJECT DEPENDENCIES START
          implementation project(path: 'CordovaLib')
          implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
          implementation 'com.google.firebase:firebase-inappmessaging-display:17.0.2'
          compile 'com.google.android.gms:play-services-ads:17.0.0'
          compile 'com.facebook.android:facebook-android-sdk:4.35.0'
          compile 'com.google.gms:google-services:4.1.0'
          compile 'com.google.android.gms:play-services-tagmanager:16.0.4'
          compile 'com.google.firebase:firebase-core:16.0.4'
          compile 'com.google.firebase:firebase-messaging:17.3.3'
          compile 'com.google.firebase:firebase-config:16.0.1'
          compile 'com.google.firebase:firebase-perf:16.1.2'
          compile 'com.google.firebase:firebase-dynamic-links:16.1.2'
          compile 'com.google.android.gms:play-services-analytics:16.0.4'
          compile 'com.google.android.gms:play-services-auth:16.0.1'
          compile 'com.google.android.gms:play-services-identity:16.0.0'
          compile 'com.loopj.android:android-async-http:1.4.9'
          compile 'com.android.support:support-v4:24.1.1+'
          compile 'com.android.support:appcompat-v7:26.1.0'
          compile 'com.android.support.constraint:constraint-layout:1.0.+'
          // SUB-PROJECT DEPENDENCIES END
        }

【问题讨论】:

  • 您的版本有些随机。请尝试使所有 Firebase 和 Google play 以及 Android 支持库在这些分组中具有相同的版本。例如,Ads 不能是 17 版,而 Google Analytics(分析)只有 16 版
  • 甚至没有任何广告17.0.0 以及google-services:4.1.0 不属于那里。 24.1.1+ 似乎也无效。最有可能的是,这个问题是一个骗局。见stackoverflow.com/a/52980504/549372 ...只是没有投票,所以我不能投票结束。

标签: android


【解决方案1】:

您应该为每个依赖项使用最新版本,您可以检查Maven repository中的内容

另外你应该使用实现而不是编译,它在年底被弃用

【讨论】:

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