Android Error: execution failed for task ':app:transformDexWithInstantRunSlicesApkForDebug'

execution failed for task ‘:app:transformDexWithInstantRunSlicesApkForDebug’
可以grade成功,但是不能正常安装在模拟器上,原因缺少slices.apk。这个apk文件正常情况下会在build文件中生成。

解决办法:
File->Settings->Built,Execution,Deployment->Instant Run
不用勾选Enable Instant Run to hot swap code/resource changes on deploy(default enabled)

参考文档:https://blog.csdn.net/liuhongshuo2012/article/details/52013972

你可能感兴趣的:(Android,Error)