Module ... is not backed by gradle

PM 77-1 picture PM 77-1 · May 7, 2014 · Viewed 89.7k times · Source

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?

Answer

Peter Niederwieser picture Peter Niederwieser · May 7, 2014

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.