I\'m trying to implement Google Sign-In through Firebase into my Android app and the following message keeps appearing after my Gradle sync:
Error:Executi
Use the same version for all Firebase and Google Play libraries:
compile 'com.google.firebase:firebase-auth:11.0.0'
compile 'com.google.firebase:firebase-messaging:11.0.0'
compile 'com.google.android.gms:play-services-auth:11.0.0'
While your making changes, you could also use the latest version of build tools:
buildToolsVersion "26.0.0"
You can simplify maintenance of version numbers and ensure they are always consistent by doing this:
ext {
SUPPORT_LIB_VER = '25.3.1'
GOOGLE_LIB_VER = '11.0.0'
}
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:$SUPPORT_LIB_VER"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile "com.android.support:design:$SUPPORT_LIB_VER"
compile "com.android.support:support-vector-drawable:$SUPPORT_LIB_VER"
compile "com.android.support:support-v4:$SUPPORT_LIB_VER"
compile "com.google.firebase:firebase-auth:$GOOGLE_LIB_VER"
compile "com.google.firebase:firebase-messaging:$GOOGLE_LIB_VER"
compile "com.google.android.gms:play-services-auth:$GOOGLE_LIB_VER"
compile 'commons-io:commons-io:2.0.1'
testCompile 'junit:junit:4.12'
}