I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven.
gps-track
Tried all above. Didn't work.
Here's what worked. Go to the file called modules.xml
Delete all the modules there. Clean and rebuild.