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

koufa

10/09/2019, 12:35 PM
Hello to all. I have a question about the following dependencies:
Copy code
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
I recently read the we should use the first one on Android as the latter ones contain it and do not provide any value on Android and the last one also has features that are not supported yet on Android ( at least for
minSdkVersion: 21
) . Is that true? What are your suggestions?
j

jw

10/09/2019, 12:40 PM
Just use jdk8
your minSdkVersion has little to do with it, since even with a low minSdkVersion you still sometimes write code that only runs on newer APIs where extensions on new types might come in handy. R8 will remove any unused code
k

koufa

10/09/2019, 12:54 PM
Ok thank you 🙂