Hi all. I’m still unclear on what the version of K...
# android
o
Hi all. I’m still unclear on what the version of Kotlin bundled with Android Studio actually means. AS 4.1 comes bundled with Kotlin 1.3.72; does that mean that if my project references Kotlin 1.4, what the editor’s linting shows me might NOT be what the Kotlin compiler actually errors on? i.e. if I try to use a
continue
in a for/when loop, the editor will show an error but the project compiles fine? Either way both Google and Jetbrain’s docs are not clear on the subject 😞
google 8
a
This was on the
What's New
section of the AS
also note that if you check for updates after 4.1 is installed you should see the option to update Kotlin plugin to the latest version
o
So my theory would be... right? Or is the Kotlin plugin independent of AS, and that’s what provides linting?
t
I believe the IDE plugin is responsible for driving IDE behavior, such as autocomplete, inspections, quick fixes, etc. The plugin is tied to the Kotlin version, because obviously those need to change as the language evolves. The Kotlin version defined in your build is what will be used when your build is executed and artifacts are produced. I think the general idea is keep the IDE plugin >= what your project needs (hopefully latest and greatest for both 😉)
👍 1