Module … is not backed by gradle

前端 未结 10 774
一整个雨季
一整个雨季 2021-02-04 23:03

I\'m using IntelliJ IDEA Pro 13.1.2. Never used any versions below 13.

When trying to run build.gradle from IDE I get the message:

M

相关标签:
10条回答
  • 2021-02-04 23:42
    1. Do not select the project directory when importing
    2. Select the gradle file to import as a Gradle project
    3. I always use Local Gradle Distribution and Offline work to build, then switch back.
    4. It will auto build and you will see the gradle task in task window.

    Hope it works for you.

    0 讨论(0)
  • 2021-02-04 23:45

    I'm using android studio, intellij. Try this:

    • Tools > Android > (sync project with gradle files)
    • Run gradle build
    0 讨论(0)
  • 2021-02-04 23:45

    You may have originally created the project via File->New->Project From Version Control. This doesn't seem to always set the project up as a Gradle project, even if there is a build.gradle in the root directory. To solve this:-

    1. Close IntelliJ.
    2. Delete the .idea folder in the project.
    3. Start IntelliJ and select 'Open'.
    4. Navigate to the project folder and open it.

    The project will be recognised as Gradle and be set up as such.

    0 讨论(0)
  • 2021-02-04 23:46

    Tools > Grails > Change SDK Version

    0 讨论(0)
提交回复
热议问题