https://kotlinlang.org logo
#android
Title
# android
a

arhyth

01/12/2019, 5:06 AM
hi! i'm following through an anko tutorial to teach myself android basics but video has older dependencies and sdk versions. i'm stuck at this error. i tried googling for the error but have not found any leads to how i might solve it. help? anyone? here's the error:
Copy code
Failed to resolve: org.jetbrains.anko:anko-sdk28:0.10.8
Open File
Show in Project Structure dialog


Failed to resolve: org.jetbrains.anko:anko-sdk28-coroutines:0.10.8
Open File
Show in Project Structure dialog
and the gradle build code:
Copy code
dependencies {
    ...
    // Anko
    implementation "org.jetbrains.anko:anko:$anko_version"
    // Anko Layouts
    api "org.jetbrains.anko:anko-sdk28:$anko_version"
    implementation "org.jetbrains.anko:anko-appcompat-v7:$anko_version"
    // Coroutine Listeners for Anko Layouts
    api "org.jetbrains.anko:anko-sdk28-coroutines:$anko_version"
    implementation "org.jetbrains.anko:anko-appcompat-v7-coroutines:$anko_version"
    // for Snackbars
    implementation "org.jetbrains.anko:anko-design:$anko_version"
    implementation 'com.android.support:design:28.0.0'
}
a

Allan Wang

01/12/2019, 6:06 AM
Maybe check that you have kotlin 1.3.0+? If you have multiple repositories, try reordering it so jcenter is on top
r

rkeazor

01/12/2019, 2:41 PM
If your learning android basics, you should use a tutrorial that uses XML. Anko is a 3rd party lib
But try the #anko channel
a

arhyth

01/13/2019, 7:06 AM
never found a solution. agreed. just discovered Google's android kotlin tutorials. think I'll better just start there.
r

rkeazor

01/14/2019, 11:30 AM
Much better
3 Views