What's the difference between 「Kotlin Plugin Version」 and 「Kotlin Gradle Plugin Version」?

 The Kotlin Plugin you mentioned first is an IDE plugin - it helps your IDE understand the Kotlin language, provide intentions, syntax highlighting, compile errors in the editor etc.

The Kotlin Gradle Plugin is a plugin meant for the Gradle build tool. This is the actual thing that compiles your code and runs the tests, and ultimately this is the most important.

You don't have to have the same version for both, but you should probably make sure the IDE plugin has a version more recent or equal to the Gradle plugin. It's important to select the version for the Kotlin Gradle Plugin based on what Kotlin version you want to use in your project. For the IDE plugin, the latest stable version is usually best. Normally, the latest Kotlin IDE plugin should understand that your Gradle configuration wants to use a lower version of Kotlin, and thus act accordingly.


https://stackoverflow.com/a/73375800

Related

Gradle 4946902935645386318

Post a Comment

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item