Two ways to create a Kotlin project using IntelliJ IDEA

Select kotlin to create

Directly select the Kotlin options, select the JVM | create project IDEA After completing the required package name information and project storage path, click Finish to create the project

The project structure created in this way is shown in the figure above

Create from Gradle

To create a package using Gradle, select Gradle and Kotlin/JVM at the same time as your New Project

Create a successful project directory

conclusion

Select Kotlin to create a project, which is fast and suitable for Demo. However, dependencies need to be manually managed, resulting in poor scalability. If you want to add a Gson package to your database, add it to the Dependencies TAB in build. Gradle. Of course, creating Gradle in this way requires compiling Gradle, which may take a little longer, and requires some knowledge of Gradle

That’s the difference between the two approaches to creating a Kotlin project