IMPORTANT NOTE:
I read this All com.android.support libraries must use the exact same version specification but none of those answers solved my problem. Same with Android Build execution failed due to incompatible library versions.
I want to connect my app to firebase realtime database and add an authentication with phone number and email. When I added the build.gradle dependencies in my app module for the realtime database there were no issues, but when I add the authentication dependencies i get the following message: error_message_screenshot The problem is that I already added those libraries in the same version (i put them all in 15.0.0), and yet even after sync i get the same message. What can I do to solve that problem ? Here is my gradle: (the commented part is another method found on firebase that i tried but it didn't work either)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "finalproject.mad.com.myapplication"
minSdkVersion 15
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 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.firebase:firebase-iid:15.0.0'
implementation 'com.google.android.gms:play-services-measurement-base:15.0.0'
implementation 'com.google.firebase:firebase-database:15.0.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'
/*implementation "com.google.firebase:firebase-auth:15.0.0"
implementation "com.google.android.gms:play-services-auth:15.0.0"
implementation "com.android.support:design:27.1.1"
implementation "com.android.support:customtabs:27.1.1"
implementation "com.android.support:cardview-v7:27.1.1"
implementation "com.google.firebase:firebase-database:15.0.0"
implementation "com.android.support:recyclerview-v7:27.1.1"
implementation "com.android.support:support-v4:27.1.1"*/
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
EDIT: Updating Android Studio fixed my problem