Error in gradle after adding commons appcompat
rickramirr opened this issue · comments
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test🏃1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation "com.squareup.retrofit2:converter-moshi:2.0.0"
//Kotlin Android Extensions
apply plugin: 'kotlin-android-extensions'
//Anko
implementation "org.jetbrains.anko:anko-commons:0.10.8"
implementation "org.jetbrains.anko:anko-sqlite:0.10.8"
implementation "org.jetbrains.anko:anko-appcompat-v7-commons:0.10.8"
}
Hi, im new at using this library and its great so i tried to add appcompat for alerts but after doing this i get this error:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 27.1.1. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:27.1.1
Already solved forcing:
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
But i send this because read on SO that this could cause problems in the future so maybe you can update this. Great job guys.
Thanks PKMNTR for fix
Jetbrains should fix it. Many apps are using anko