ইন্টেলিজে আইডিইএতে একটি কোটলিন প্রকল্প কীভাবে সঠিকভাবে কনফিগার করবেন?

আপনাকে IntelliJ IDEA-তে আপনার Kotlin প্রকল্প কনফিগার করতে হতে পারে, for example for a project that you have imported from Github. Without the correct configuration the project will not compile/run or you may get error messages such as ‘AppKt not found in module’ or your main method cannot be found.

The following steps will configure your GitHub Kotlin project

  1. Configure Kotlin in your project
    1. Tools -> Kotlin -> Configure Kotlin in Project
      একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন
    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
       একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন
  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 -> নির্দেশিকা
        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
          একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন
    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
        বিঃদ্রঃ: if you get any Github prompts click cancel
        একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন
    3. Select Modules
      1. Right click src directory and set as Sources
      2. OK ক্লিক করুন
        বিঃদ্রঃ: Cancel or choose No for any Github prompts
        একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন
  3. Configure Run and Debug for Kotlin
    1. Open the App.kt file or the file which contains the main application entry point method
      বিঃদ্রঃ: Choose No for any Github prompts
    2. Click the small Kotlin icon to the left of the method
      1. Choose Run ‘AppKt’
        একটি বিদ্যমান গিটহাব প্রকল্প থেকে তৈরি করা একটি কোটলিন প্রকল্প কীভাবে কনফিগার করবেন

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