If this is a Gradle module, please check the .idea project folder there is a gradle.xml
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$/xxx" />
<option name="gradleHome" value="/opt/gradle/gradle-2.13" />
......
</GradleProjectSettings>
you should remove this entry and try to reimport your module
I am using Intellij Idea 2016.1.3, Mac OSX El Capitan 10.11.5