把.iml文件的
<orderEntry type="inheritedJdk" />
删除
加上
<orderEntry type="jdk" jdkName="Android API 26 Platform" jdkType="Android SDK" />