Kotlin-多平台功能 [英] Kotlin - Multi platform feature

查看:196
本文介绍了Kotlin-多平台功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Kotlin多平台功能,并且有一个小问题.当我在Intellij中启动gradle多平台项目并使用关键字实际"和期望"时,它们用红色加下划线并显示消息功能多平台项目"是实验性的,应明确启用".

I'm currently playing around with Kotlin multi platform feature and have a minor problem. When I start gradle multi-platform project in Intellij and use keywords 'actual' and 'expect', they are underlined in red and show message "The feature "multi platform projects" is experimental and should be enabled explicitly"

如何显式启用多平台功能?谢谢

How can I explicitly enable multi platform feature? Thanks

推荐答案

最后找到了答案.在Intellij的 Preferences-> Build,Execution,Deployment-> Compiler-> Kotlin Compiler 中,将其附加到其他命令行参数:字段命令 -Xmulti-platform .

Finally found an answer. In Intellij in Preferences->Build, Execution, Deployment->Compiler->Kotlin Compiler append to Additional command line parameters: field command -Xmulti-platform.

这篇关于Kotlin-多平台功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆