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
goto .idea
folder open modules.xml
file and see for yourself what module is there that you are not using in project currently.
Copy the project files from the original source and paste it somewhere and then import from the Android Studio.
Change the directory of the Project and re-open.
In my case settings.gradle contained invalid configuration.
I changed:
include ':app' rootProject.name='<somthing else>'
To:
include ':app'
Error is gone. So maybe check your settings.gradle for potential errors. If this won't work try to remove cache and other tips.
Make sure you have added your module to the settings.gradle
file:
include ':app'
include ':your-module'