MobileVisionBarcodeScanner icon indicating copy to clipboard operation
MobileVisionBarcodeScanner copied to clipboard

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.

Open JobGetabu opened this issue 7 years ago • 4 comments

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 ?

JobGetabu avatar Aug 10 '18 21:08 JobGetabu

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

razaphd avatar Oct 04 '18 17:10 razaphd

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

renotavares avatar Nov 13 '18 23:11 renotavares

Same issue here

ljesus avatar Nov 26 '18 17:11 ljesus

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

albert0m avatar Jan 08 '21 11:01 albert0m