``` java.lang.NoSuchMethodError: org.jetbrains.kot...
# kotlin-native
t
Copy code
java.lang.NoSuchMethodError: org.jetbrains.kotlin.konan.target.HostManager.<init>(Lorg/jetbrains/kotlin/konan/target/SubTargetProvider;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
        at org.jetbrains.kotlin.gradle.plugin.mpp.KotlinMultiplatformPlugin.setupDefaultPresets(KotlinMultiplatformPlugin.kt:149)
        at org.jetbrains.kotlin.gradle.plugin.mpp.KotlinMultiplatformPlugin.apply(KotlinMultiplatformPlugin.kt:81)
        at org.jetbrains.kotlin.gradle.plugin.mpp.KotlinMultiplatformPlugin.apply(KotlinMultiplatformPlugin.kt:38)
        at org.jetbrains.kotlin.gradle.plugin.KotlinBasePluginWrapper.apply(KotlinPluginWrapper.kt:77)
        at org.jetbrains.kotlin.gradle.plugin.KotlinBasePluginWrapper.apply(KotlinPluginWrapper.kt:39)
        at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:42)
Does somebody know how to fix such exception, when using new MPP plugin and adding native "linuxX64" target on linux host?
hm. according to https://youtrack.jetbrains.com/issue/KT-27114 it is fixed 🤔
o
What’s your version in Gradle?
t
4.10.2
o
Thanks, but I meant Kotlin’s version in Gradle (as opposed to IDE). Sorry for not being clear.
t
1.3.0
o
Okay, let’s summon the author 🙂 @ilya.matveev
t
ok, found the issue - very specific to my use-case - I used both old "konan" and new mpp plugin that seems not working together. May I assume that "konan" plugin is deprecated and not supported anymore?
i
Yes, the
konan
plugin is deprecated although we still publish it to Bintray and Gradle plugin portal. As for the initial problem, it is known and was fixed in 1.3.0. What's the version of the
konan
plugin you depend on?
t
0.8.2
- so it is pretty old
what is the current version of this plugin?
i
Now native plugins have the same versioning as Kotlin itself. So the current version is 1.3.0.
👍 1