hi! i'm following through an anko tutorial to teac...
# android
a
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
Maybe check that you have kotlin 1.3.0+? If you have multiple repositories, try reordering it so jcenter is on top
r
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
never found a solution. agreed. just discovered Google's android kotlin tutorials. think I'll better just start there.
r
Much better