ClassNotFoundException: org.jetbrains.kotlin.tools.projectWizard.wizard.ui.UiKt
Answered
Current Version IntelliJ IDEA 2020.3.2 (Community Edition)
Build #IC-203.7148.57, built on January 26, 2021
Runtime version: 11.0.9.1+11-b1145.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1908M
Cores: 8
I develop plugin for Android Studio 4.1.2 (201.8743.12). When I run Android Studio Ide instance with Kotlin Plugin 1.3.72. It works. But after update Kotlin Plugin 1.4.31 I get this error.
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.tools.projectWizard.wizard.ui.UiKt PluginClassLoader[com.muzzlyworld.ribsplugin, 1.0.0] com.intellij.ide.plugins.cl.PluginClassLoader@1ea77e9a
Please sign in to leave a comment.
The `UiKt` is a set of util functions which are not supposed to be used outside Kotlin project wizard in Kotlin plugin. Which exact function from `UiKt` do you need?
Also, you can found source code of those util functions here https://github.com/JetBrains/intellij-kotlin/blob/master/project-wizard/idea/src/org/jetbrains/kotlin/tools/projectWizard/wizard/ui/ui.kt
I use textField function and it perfectly works with kotlin plugin 1.3.72(According to my observation). What function can I replace it?
As I can see by your code, you are using Kotlin UI DSL. Kotlin UI DSL already have function for creating text fields. Please, take a look at `com.intellij.ui.layout.Cell.textField`. It should be available from your `row { }` call and it has `setter` parameter which you can use as your textfield listener