导入其他项目的时候,可以正常Build成功,但是不能运行,不能安装到手机或者模拟器上,会报上面的错误,缺少slices.apk。这个apk文件正常情况下会在build文件中生成
解决办法:
File->Settings->Built,Execution,Deployment->Instant Run
不用勾选Enable Instant Run to hot swap code/resource changes on deploy(default enabled)
参考文档:参考此文解决问题
01-04
1816
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-21
6万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-29
11万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)