Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The library com.google.android.gms:play-services-basement is being requested by various other libraries at [[11.0.4,11.0.4], [15.0.1,15.0.1]], but resolves to 15.0.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. #56

Open
JobGetabu opened this issue Aug 10, 2018 · 4 comments

Comments

@JobGetabu
Copy link

apply plugin: 'com.android.application'

android {
    compileSdkVersion 'android-P'
    buildToolsVersion "27.0.3"

    defaultConfig {
        applicationId "com.job.darasastudent"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

        //Enabling multidex support.
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
    implementation 'com.android.support:support-vector-drawable:28.0.0-alpha1'
    implementation 'com.android.support:support-v4:28.0.0-alpha1'

    implementation 'com.android.support.constraint:constraint-layout:1.1.2'

    //If your minSdkVersion is lower than 21
    implementation 'com.android.support:multidex:1.0.3'

    //firebase
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.2'
    implementation 'com.google.firebase:firebase-firestore:17.0.4'

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

    //qr scanner
    implementation 'com.github.KingsMentor:MobileVisionBarcodeScanner:2.0.0'

    // ViewModel and LiveData
    implementation "android.arch.lifecycle:extensions:1.1.1"
    annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
}

apply plugin: 'com.google.gms.google-services'

plugin com.google.gms.google-services is used by firebase and disabling will mean i can't use firebase ?

@razaphd
Copy link

razaphd commented Oct 4, 2018

I have exactly the same issue, but no luck.
If I use:
implementation 'com.google.android.gms:play-services-analytics:16.0.0'
then it just gives warning.
But this should NOT be the solution

@renotavares
Copy link

Reading the Firebase documentation I solved the synchronization problem ...
https://firebase.google.com/docs/android/setup

@ljesus
Copy link

ljesus commented Nov 26, 2018

Same issue here

@albert0m
Copy link

albert0m commented Jan 8, 2021

same issue, did anyone manage to work around this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants