![]() The file main.kt includes sample code that prints "Hello, Kotlin/Native!" using the println() function.Īdd code to read the input. ![]() The src directory contains the Kotlin source files and resources. Open the file main.kt in src/Main/kotlin. Update the application Count the letters in your name IntelliJ IDEA opens the Run tab and shows the output: Start the application by clicking Run next to the run configuration at the top of the screen. Read more about these settings in the Kotlin Multiplatform Gradle DSL reference. By default, the wizard creates the necessary main.kt file with code that prints "Hello, Kotlin/Native!" to the standard output. Kotlin/Native doesn't support Maven and IntelliJ IDEA native builder.Īccept the default configuration on the next screen and click Finish. In the panel on the left, select Kotlin.Įnter a project name, select Native Application as the project template, and click Next.īy default, your project will use Gradle with Kotlin DSL as the build system.In IntelliJ IDEA, select File | New | Project.Create a new Kotlin/Native project in IntelliJ IDEA The tutorial is applicable to both IntelliJ IDEA Community Edition and the Ultimate Edition. To get started, install the latest version of IntelliJ IDEA. This tutorial demonstrates how to use IntelliJ IDEA for creating a Kotlin/Native application. ![]() Get started with Kotlin/Native using IntelliJ IDEA
0 Comments
Leave a Reply. |