Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Guys today am open my android studio and am getting an error and i dont know how to solve it please help me i am getting this error
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 10.2.0.

What I have tried:

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion '26.0.1'
defaultConfig {
applicationId "com.complainprotectioncell"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true //important
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module('org.apache.commons:commons-io:1.3.2') with module('commons-io:commons-io:1.3.2')
}
}
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:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
testCompile 'junit:junit:4.12'
compile 'com.github.barteksc:android-pdf-viewer:2.3.0'
compile 'org.apache.commons:commons-io:1.3.2'
compile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile 'com.google.firebase:firebase-messaging:10.2.0'
compile files('libs/mail.jar')
compile 'com.android.volley:volley:1.1.0'
compile 'com.firebaseui:firebase-ui-auth:3.0.0'
compile 'com.google.firebase:firebase-auth:11.0.0'
}
apply plugin: 'com.google.gms.google-services'
Posted
Updated 20-Jan-18 21:57pm
v2
Comments
Richard MacCutchan 21-Jan-18 3:28am    
Do what the messages are telling you. This is not a programming problem.
Member 9983063 21-Jan-18 3:57am    
i dont know what message are telling me
David Crow 22-Jan-18 9:02am    
You either need to: 1) 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 2) update the version of com.google.android.gms to 10.2.0.

Have you tried adding something like the following:
dependencies {
    classpath 'com.google.gms:google-services:3.1.1'
    // ...
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900