Bug with.google.android.gms in ':app:processDebugGoogleServices'

Asked

Viewed 1,006 times

0

My code is making that mistake:

Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version Conflict either by updating the version of the google-services plugin (information about the Latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.4.0.

Because it will be?

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

android {
    signingConfigs {
        config {
            keyAlias 'fabiohcnobre'
            keyPassword 'xxxx'
            storeFile file('C:/Users/fabio/AndroidStudioProjects/KEY_STORE/android.jks')
            storePassword 'xxxx'
        }
    }
    compileSdkVersion 24
    buildToolsVersion "24.0.2"
    defaultConfig {
        applicationId "fabiohcnobre.jhotelcolonialdosnobres"
        minSdkVersion 19
        targetSdkVersion 24
        versionCode 17
        versionName '1.1.7'
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        signingConfig signingConfigs.config
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.google.firebase:firebase-core:9.4.0'
    compile 'com.google.firebase:firebase-messaging:9.4.0'
    compile 'com.google.android.gms:play-services-appindexing:9.6.1'
    compile 'com.nispok:snackbar:2.10.10'
    compile 'com.android.support:design:24.2.1'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.android.support:support-vector-drawable:24.2.1'
    compile 'com.google.firebase:firebase-auth:9.4.0'
    compile 'com.google.android.gms:play-services-auth:9.6.1'
    compile 'com.google.android.gms:play-services:9.6.1'
    compile 'com.google.android.gms:play-services-fitness:9.6.1'
    compile 'com.google.android.gms:play-services-wearable:9.6.1'

    testCompile 'junit:junit:4.12'
    compile 'com.google.firebase:firebase-database:9.4.0'

}

1 answer

1


This error informs that there is a conflict between versions of google-services plugin and the api’s com.google.android.gms.

You are using version 9.4.0 of the api s com.google.firebase at the same time as using version 9.6.1 of com.google.android.gms, hence the conflict.

Change the com.google.firebase for version 9.6.1

  • Ranaral, my version of build.grandle is so classpath 'com.google.gms:google-services:3.0.0'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.