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
Writing in 2020 -
If none of these worked, close android studio and then go to
C:\Users\User.AndroidStudio(ANDROID_STUDIO_VERSION)\system and delete the caches folder
Restart your project now, it should work.