Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Error in gradle after adding commons appcompat #734

Open
rickramirr opened this issue Mar 28, 2019 · 1 comment
Open

Error in gradle after adding commons appcompat #734

rickramirr opened this issue Mar 28, 2019 · 1 comment

Comments

@rickramirr
Copy link

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:runner: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.

@prakashshuklahub
Copy link

Thanks PKMNTR for fix

Jetbrains should fix it. Many apps are using anko

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants