Default gradle.build.kt multiplaform project show erros

I create new multiplatform project and the defautl gradle.build get errors:

I can compile and execute the code, but gradle show this errors in the IDE.

In linuxX64, el tooltip show:

Cannot access 'org.jetbrains.kotlin.gradle.plugin.KotlinTargetsContainerWithPresets' which is a supertype of 'org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions'. Check your module classpath for missing or conflicting dependencies
``

In nativeTarget.apply

Cannot access ‘org.jetbrains.kotlin.gradle.plugin.KotlinTarget’ which is a supertype of ‘org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithHostTests’. Check your module classpath for missing or conflicting dependencies


Any ideas?

I use Manjaro Linux. I try fresh installation.

There is a rather frequent bug in 1.4.0 and 1.4.10, when kts can’t find all classes on the class-path.Cleaning project idea cached sometimes helps (delete .idea directory in the project and re-import it from the gradle model).

1 Like

I cleaned cached.
It works now. Thanks.