Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Kotlin plugin - "there aren't configurators available"

I'm having problems using the Kotlin plugin in IntelliJ IDEA. First, upon opening a kotlin project, it pops up that I need to configure Kotlin in this project. But when I do so from the Tools menu, it says "there aren't configurators available"

like image 344
talloaktrees Avatar asked Sep 28 '15 22:09

talloaktrees


People also ask

How do I enable Kotlin plugin in IntelliJ?

The plugin is bundled with IntelliJ IDEA and is activated by default. If the plugin is not activated, enable it on the Plugins page of the IDE settings Ctrl+Alt+S as described in Install plugins. IntelliJ IDEA provides first-class support for Kotlin.

How do I fix Kotlin is not configured in IntelliJ?

Add new Kotlin file to a project. "Kotlin not configured" message apears, suggesting to either "Configure" or "Ignore". Chose "Configure", select "Java".

How do I find my Kotlin plugin version in IntelliJ?

IntelliJ IDEA and Android Studio suggest updating to a new release once it is out. When you accept the suggestion, it automatically updates the Kotlin plugin to the new version. You can check the Kotlin plugin version in Tools | Kotlin | Configure Kotlin Plugin Updates.

How add Kotlin SDK to IntelliJ?

From the main menu, select File | Project Structure | Project Settings | Project. If the necessary SDK is already defined in IntelliJ IDEA, select it from the SDK list. If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name', and specify the path to the SDK home directory.


3 Answers

I had the same problem with one of my Kotlin gradle project.
Go to View -> Tool Windows -> Gradle. There should be a Reimport all Gradle Projects icon at the top. (Circle with double arrows). Just click on it and it should refresh your gradle project with Kotlin configuration.

like image 110
Meghajit Avatar answered Oct 24 '22 05:10

Meghajit


This happened to me with Kotlin 1.3 and IntelliJ 2018.2.6.

I tried all the above solutions listed---none of them worked until I actually deleted the .idea folder and .iml file from my Kotlin gradle project directory and then re-imported them in IDEA, then all was well.

like image 28
Derek Andrews Avatar answered Oct 24 '22 04:10

Derek Andrews


I had this same problem in Android Studio 3.0 Canary 1. Cneal build, Synchronize, Invalidate Caches and Restart didn't help.

The only thing that worked was to make a change to a build.gradle file and click "Sync now".

like image 21
gladed Avatar answered Oct 24 '22 04:10

gladed