Why Can't I Add A New Kotlin SDK?


I am using a project using Kotlin 1.2.71 and when I now try to debug it in IDEA it will no longer build with the error:

Kotlin: Language version 1.2 is no longer supported; please, use version 1.3 or greater.

When I go to the project settings I can add a new JDK but I can't add a new Kotlin SDK.

When I click the plus button the menu says "Add JDK". When I right-click in the panel is says "Add New SDK" - neither of which allows me to have multiple different SDKs available for different projects in the same way as I can have multiple different JDKs available.

The button to browse for the SDK I downloaded doesn't work.

Pasting the url into the home path doesn't work.

Trying to select and copy the text "Kotlin SDK home path:" for this post doesn't work.

Why can't I add a new Kotlin SDK?




It's not really a separate SDK, it just reuses the IDEA Kotlin plugin. You have to update the IDE plugin. If you're using an old IDEA version, you would have to update it too, because the latest Kotlin IDE plugins don't support old IDEAs.


Exact same case for me. I'm in a corporate network that blocks maven central access, I have the local kotlin compiler, but thanks to the overengineered plugin, it only fetches the jar from maven central.

So I have an IJ Ultimate and can't use kotlin in it. This is quite basic, and available for every language in IDEA, except that one runtime they themselves invented! ¯\_(ツ)_/¯ 


"Kotlin SDK" should point to the Kotlin IDE plugin bundled into IDEA, for example on my machine it is "/Users/Alexey.Belkov/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-6/223.8836.41/IntelliJ IDEA.app/Contents/plugins/Kotlin/kotlinc".

Looks like your case with the corporate network is different. Can you please create an issue at https://youtrack.jetbrains.com/issues/KTIJ, describe your use case and share a sample project to reproduce.


Please sign in to leave a comment.