I'm starting to learn develop android apps.
I'm following a firebase tutorial, and I'm getting some errors on my build.gradle
file.
Can someone please help me?
My build.gradle
file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "br.com.brunots.firebasetests"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation ''
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-core:11.8.0'
testImplementation 'junit:junit:4.1com.android.support:appcompat-v7:27.1.02'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.android.support:design:27.1.0'
compile 'com.firebaseui:firebase-ui:0.6.0'
}
apply plugin: 'com.google.gms.google-services'
These are the errors:
- All gms/firebase libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 9.6.0, 11.8.0. Examples include
com.google.android.gms:play-services-auth:9.6.0
andcom.google.android.gms:play-services-basement:11.8.0
- All com.android.support libraries must use the exact same version
specification (mixing versions can lead to runtime crashes). Found
versions 27.1.0, 23.4.0. Examples include
com.android.support:animated-vector-drawable:27.1.0
andcom.android.support:cardview-v7:23.4.0
I don't know where is this the older versions is declared.