android 模拟器上apk安装不了 app:transformDexWithInstantRunSlicesApkForDebug错误

AS新建了一个项目 ,打算在模拟器上跑一下看看效果,结果死活安装不了:一直爆红:F:\dome\Android\SmallEars\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_5\resources_ap

android 模拟器上apk安装不了 app:transformDexWithInstantRunSlicesApkForDebug错误

 点红色感叹号:

android 模拟器上apk安装不了 app:transformDexWithInstantRunSlicesApkForDebug错误

解决办法参考:https://blog.csdn.net/qq_34707150/article/details/90483690

File->Settings->Built,Execution,Deployment->Instant Run

取消勾选Enable Instant Run to hot swap code/resource changes on deploy(default enabled)

android 模拟器上apk安装不了 app:transformDexWithInstantRunSlicesApkForDebug错误

然后apply 再点击ok ,重新运行就可以了