0

So kotlin/native is a thing, share your code between platforms, keep native performance, wow, sounds great, but how does one even start with kotlin/native? I'm spending a week already on those readme files from https://github.com/JetBrains/kotlin-native with no success, cant start project from Clion(windows10), cant run any examples, cant open few example projects etc, is there any reliable guide for working with kotlin/native?

Just look at this https://github.com/JetBrains/kotlin-native/tree/master/samples/calculator okay, let's say that I'm trying to open that project in android studio as described in readme, boom

enter image description here

'Included build 'C:\shared' does not exist.' You cant sync project, android studio cant see modules because of that so it is impossible to create app config, what shared even is, do I need that, why it is there.

enter image description here

When you even run 'hello world' app from clion, you actually cant build it. Is there anyone that managed to get even something to work?

4

2 回答 2

0

您可以在 IntelliJ IDEA(不是 CLion)中使用 Gradle 打开 Kotlin/Native 项目。可以使用安装了 Kotlin/Native 插件的最新 CLion 打开示例。一些教程可能会有所帮助 - https://kotlinlang.org/docs/tutorials/ - 查看native左侧的部分

于 2018-09-02T18:11:31.767 回答
0

您应该克隆整个https://github.com/JetBrains/kotlin-native,并使用整个目录,而不仅仅是使用单个文件夹......

于 2018-07-08T04:07:58.757 回答