https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

Pablo Caviglia

06/16/2020, 9:52 PM
Hi, I'm trying to compile a kotlin mp project and to use actual/expect, but when I try to compile with gradle I get this:
Copy code
> Task :android:compileDebugKotlin FAILED
e: /home/pablo/devel/projects/tool_framework_multi_platform/src/androidMain/kotlin/com/senaptec/toolframework/ui/Video.kt: (3, 1): The feature "multi platform projects" is experimental and should be enabled explicitly
I've added some extra options for the compiler in my build.gradle, but seems to dont have any effect on the error:
d

Derek Ellis

06/16/2020, 9:55 PM
What version of Kotlin are you using?
p

Pablo Caviglia

06/16/2020, 9:59 PM
1.3.72
c

Casey Brooks

06/16/2020, 10:01 PM
yeah, the MPP Gradle DSL got a heavy lift recently. You should’t use
fromPreset
, and the compiler options should be handled for you. Here’s the current docs for MPP setup, which are pretty good https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#setting-up-targets
p

Pablo Caviglia

06/16/2020, 10:02 PM
uhm nice, investigating
thx casey
2 Views