Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a JavaToKotlinConversionProvider

I'm not able to create a new project in the android studio. I am getting a warning message

java.lang.RuntimeException: Could not find a JavaToKotlinConversionProvider, even though one should be bundled with Studio at com.android.tools.idea.npw.model.JavaToKotlinHandler.getJavaToKotlinConversionProvider(JavaToKotlinHandler.java:56) at com.android.tools.idea.npw.template.TemplateValueInjector.addKotlinVersion(TemplateValueInjector.java:410)

like image 606
Vivek Nayak Avatar asked Feb 04 '19 12:02

Vivek Nayak


4 Answers

Go to Preferences -> Plugins -> Kotlin and update the Kotlin plugin to the last version even though you don't write your code in Kotlin.

Preferences

like image 99
Alireza Noorali Avatar answered Nov 08 '22 20:11

Alireza Noorali


I have the same error, I've juste disabled the kotlin plugin and after restarting the IDE, just re-enable it. After that final restart, every thing works fine.

like image 5
Mame Medoune Diop Avatar answered Nov 08 '22 19:11

Mame Medoune Diop


Go to file and the plugin in android studio and update your Kotlin plugin...

Image lacks any useful description

like image 4
Jagdeep Singh Avatar answered Nov 08 '22 20:11

Jagdeep Singh


I opened an old project (by old I mean another project) and did everything Android Studio said to give me a successful build (I faced some errors when I tried to build the project that I could build couple weeks ago and actually I fixed them, updating gradle and stuff like that, not code issues of course).

After that I could create new project same as before.

Update seems like in order to keep Android Studio happy we have to keep Kotlin plugin enabled, interesting.

like image 2
Mehdi Dehghani Avatar answered Nov 08 '22 20:11

Mehdi Dehghani