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

前端 未结 3 979
感情败类
感情败类 2020-12-11 07:39

I see that this is a common issue apparently, but none of the posted solutions work for me. I have checked and all of my play services and firebase libraries are at the late

相关标签:
3条回答
  • 2020-12-11 07:56

    Option 1

    Downgrade your google service version to 3.2.1

    classpath 'com.google.gms:google-services:3.2.1'
    

    Option 2

    right after the apply plugin: 'com.google.gms.google-services' at the bottom of your build.gradle the following can be added to work around the issue.

    com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
    
    0 讨论(0)
  • 2020-12-11 08:05

    most likely ...without knowing what might be in the libs directory:

    dependencies {
        implementation "com.google.android.gms:play-services-base:16.0.1"
        implementation (fileTree(dir: "libs", include: ["*.jar"])) {
            exclude group: "com.google.android.gms"
        }
    }
    

    or enforce the version to select:

    configurations.all() {
        resolutionStrategy.force "com.google.android.gms:play-services-base:16.0.1"
    }
    
    0 讨论(0)
  • 2020-12-11 08:18

    Using the latest version of the library works com.google.firebase:firebase-core:16.0.9

    find the latest version frm maven: https://dl.google.com/dl/android/maven2/index.html

    0 讨论(0)
提交回复
热议问题