Using Android Studio 4.2.1 with Kotlin 1.5.20 plug...
# android
m
Using Android Studio 4.2.1 with Kotlin 1.5.20 plugin. However, in my gradle scripts I still have Kotlin 1.4.32 specified. I’ve noticed, for example, that
Char.toInt()
is marked as deprecated so I change it to
Char.code
and add
@OptIn(ExperimentalStdlibApi::class)
. This seems to work but how is that possible considering
Char.code
is 1.5+?
r
bump up the version on the gradle?
☝️ 1
👎 1
m
@radityagumay Not possible at the moment due to issues with other dependencies. I’m more interested in understanding why it works.
r
i don't think that would work on someone else machine which not installed 1.5.20 @Mark
m
So presumably the Kotlin version specified in the build script is not the one used to build the app?
d
Exactly. After all the build script doesn't even have to use Kotlin.