Android Studio 3.0.1 中,Run 'app' 时,生成的 apk 被分割成多个 slice:
$ adb install-multiple -r
D:\...\app\build\intermediates\split-apk\debug\dep\dependencies.apk
D:\...\app\build\intermediates\split-apk\debug\slices\slice_1.apk
D:\...\app\build\intermediates\split-apk\debug\slices\slice_2.apk
D:\...\app\build\intermediates\split-apk\debug\slices\slice_3.apk
……
导致 apk 一直安装不上
我们希望关掉这个功能,怎么办呢?
- 按 Ctrl + Alt + S
- Build, Execution, Deployment -> Instant Run
- 干掉 Enable Instant Run…… 前面的勾。