I've got an issue with Kotlin and Android Studio. ...
# android
t
I've got an issue with Kotlin and Android Studio. My project has min api level of 16. When I call for example the
getColor(Int)
method on the context in Java I get an error because this method is available for API >= 23. When I call the same method in Kotlin, I don't get this error in Android Studio. This has already cause several bugs in my app, because it crashes on runtime. Is this a know isue or any way to fix it?