Error compiling com.google.android.gms to 10.0.0

0

Updating the dependencies in Android studio I find the following error.

  

Error: Execution failed for task ': app: processDebugGoogleServices'. >   Please fix the version of the conflict either by updating the version of the   google-services plugin (information about the latest version is   available at    link )   or updating the version of com.google.android.gms to 10.0.0.

the dependencies in the following way.

   android {                                                                                                        
    compileSdkVersion 26                                                                                         
    buildToolsVersion "26.0.1"                                                                                   
    defaultConfig {                                                                                              
        applicationId "meditech.com.mx.meditech"                                                                 
        minSdkVersion 21                                                                                         
        targetSdkVersion 26                                                                                      
        versionCode 1                                                                                            
        versionName "1.0"                                                                                        
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"                               
        // Enabling multidex support.                                                                            
        multiDexEnabled true                                                                                     
    }                                                                                                            
    buildTypes {                                                                                                 
        release {                                                                                                
            minifyEnabled false                                                                                  
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'                   
        }                                                                                                        
    }                                                                                                            

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


    compile 'com.android.support:multidex:1.0.1'                                                                 
    compile 'com.android.support:appcompat-v7:26.+'                                                              
    compile 'com.android.support.constraint:constraint-layout:1.0.2'                                             
    compile 'com.android.support:design:26.+'                                                                    
    compile 'com.android.support:cardview-v7:26.+'                                                               
    compile 'com.hannesdorfmann.smoothprogressbar:library:1.0.0'                                                 
    compile 'com.google.android.gms:play-services-maps:10.0.0'                                                   
    compile 'com.google.firebase:firebase-core:10.2.6'                                                           
    compile 'com.google.firebase:firebase-storage:10.0.1'                                                        
    compile 'com.google.firebase:firebase-auth:10.0.1'                                                           
    testCompile 'junit:junit:4.12'                                                                               
}                                                                                                                

apply plugin: 'com.google.gms.google-services' 
    
asked by Julio César 22.09.2017 в 03:01
source

1 answer

1

The problem you are having is that there is a conflict of versions of Google Play dependencies which is a problem since the changes between version and version can break functionality or bring unexpected performance.

To solve this you must ensure that Google play libraries (GMS) and firebase libraries have the same version (11.4.0 at the time of this response) and that they are updated as the version of the GMS plugin that you can find in the build.gradle parent of the project (version 3.1.0 at the time of this response and that has the same version of google play that the bookstores mentioned above)

    
answered by 30.09.2017 в 16:24