Module … is not backed by gradle

前端 未结 10 803
一整个雨季
一整个雨季 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

    The answer that worked for me is to restart IntelliJ - at startup build.gradle is identified and the project is set up.

    The only thing that worked for me was to use the menu File > Close Project and reopen it. IDEA popped up a dialog saying "Import project from Gradle files" or something to that effect.


    Dead ends: Below is a list of dead ends, so don't waste your time with them. I kept seeing "module is not backed by gradle" despite following all these proposed solutions:

    1. There was no Gradle tool window, so I couldn't synchronize the project
    2. Clicking File > Open gradle.build opens the file for editing and doesn't solve the issue
    3. Creating a run configuration that runs gradle has no effect, even after I saw a build/ folder created
    4. Runing ./gradlew from the commandline only creates files for gradle and doesn't fix IntelliJ

提交回复
热议问题