https://kotlinlang.org logo
#announcements
Title
# announcements
r

ribesg

08/21/2019, 12:51 PM
Is there a documentation about which
stdlib
dependency does what? For example, should I use
stdlib-jdk8
for an Android lib/app?
m

Marko Mitic

08/21/2019, 12:55 PM
I think not,
stdlib-jdk8
relies on java 8 APIs being available
👍 1
l

louiscad

08/21/2019, 1:35 PM
You can use jdk7 for now, and use jdk8 once AndroidX migrates to java8
👍 1
Java 12, 13 or 14 might be generally available by this time BTW 🧌
I "think" you can use -jdk8 and it'll still run on Android even if there's no java8, it's all detected at runtime
stdlib-jdk8 = stdlib-jdk7 + some regex things stdlib-jdk7 = stdlib + suppressed exceptions
There might be other small things but really, most of everything is in the regular stdlib
2 Views