I am having problems when I add ```kotlin.native....
# multiplatform
j
I am having problems when I add
Copy code
kotlin.native.enableDependencyPropagation=false
Copy code
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':project-name:compileIos64MainKotlinMetadata'.
...
Caused by: org.jetbrains.kotlin.backend.konan.KonanCompilationException: Compilation finished with errors
Is there something wrong in this setup? without
kotlin.native.enableDependencyPropagation=false
, it works
kotlin.mpp.enableHierarchicalCommonization=false
fixed the problem
but it will not be available in Kotlin 1.5.30 😕
r
1.5.30 has a pretty big rewrite of the commonization internals so there's a decent chance the problem will go away anyway
It's not clear to me what's going wrong for you from that snippet, though
j
I think it is correct, but
platform
and so on are missing
I am going to try 1.5.30, thank you 🙂
r
If you don't have
kotlin.native.enableDependencyPropagation=false
I would expect IDE inference to fail for things like
platform
in the
iosMain
source
j
I am having the oposite behaviour, with it,
platform
is unresolved, if I remove it, it compiles
Do you know what is the new maven repo for eap versions? I can’t find it in google, I remember it is a jetbrains space one…
<https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/>
1.5.30 has a different issue
Copy code
Could not determine the dependencies of task ':project-name:jvmJar'.
> Could not create task ':project-name:compileKotlinJvm'.
   > Could not create task of type 'KotlinCompileWithWorkers'.
      > Could not create an instance of type org.jetbrains.kotlin.gradle.tasks.KotlinJavaToolchainProvider.
         > Could not generate a decorated class for type KotlinJavaToolchainProvider.
            > Cannot have abstract method KotlinJavaToolchain.getJdk().