Gradle – Module … is not backed by gradle

build.gradlegradleintellij-13intellij-idea

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:

Module is not backed by gradle

I can run this script from the command line just fine.

The "root" directory has both .gradle and gradle sub-directories and, in general its structure is very similar to another module from the same project where I can run its build from IDE without problems.

Any suggestions on further troubleshooting?

Best Answer

If you didn't set up the IDE project via "Import Project" and then pointing to a Gradle project, you may have to link the IDE project to the Gradle project. This can be done in the "Gradle" window.