Sidee si sax ah reserved mashruuca Kotlin ah ee IDEA IntelliJ?

You may have to configure your Kotlin project in IntelliJ IDEA, tusaale ahaan mashruuca ah in aad laga keeno Github. Aan qaabeynta saxda ah mashruuca aan isu ururin doonaa / ordaan ama waxaad ka heli kartaa fariimaha qalad sida 'AppKt lagama helin module’ ama habka aad ugu weyn ee aan la heli karin.

The following steps will configure your GitHub Kotlin project

  1. Configure Kotlin in your project
    1. Tools -> Kotlin -> Configure Kotlin in Project
      Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira
    2. If you have more than one module choose all modules otherwise Single module will be fine and choose Use library from plugin
    3. Press OK
       Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira
  2. Configure the project settings
    1. Create a directory for the Project compiler output
      1. Right click the project root in the Project Tool Window
        1. Choose New -> Directory
        2. Enter new directory name: out
        3. Press OK
        4. Right click the new out directory in the Project Tool Window and choose Copy Path
          Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira
    2. Choose File -> Project Structure
      1. In Project compiler output paste in the out directory Path which was copied in the previous step
      2. Select the JDK 1.8 in Project SDK
      3. Select SDK default in Project language level
        Ogow: if you get any Github prompts click cancel
        Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira
    3. Select Modules
      1. Right click src directory and set as Sources
      2. Click OK
        Ogow: Cancel or choose No for any Github prompts
        Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira
  3. Configure Run and Debug for Kotlin
    1. Open the App.kt file or the file which contains the main application entry point method
      Ogow: Choose No for any Github prompts
    2. Click the small Kotlin icon to the left of the method
      1. Choose Run ‘AppKt
        Sida loo reserved mashruuca Kotlin ah oo loo abuuray ka ah mashruuca GitHub jira

Your project configuration is now complete and your Kotlin app should compile and run with no problems.