解决方案:
修改项目下 .idea\workspace.xml
找到标签 <component name="PropertiesComponent">。在标签里加一行 :
<property name="dynamic.classpath" value="true" />
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="dynamic.classpath" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543830701622" />
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.gradle" />
</component>