Hello to all. I have a question about the followin...
# android
k
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
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
Ok thank you 🙂