本文介绍了如何在Android Studio 2.3中停止安装多个切片APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将android studio更新到2.3版之后。我在Android设备安装Android设备时遇到问题。
这里附加在更新android studio之前和之后在控制台中引发的输出。

After updating the android studio to version 2.3. i am facing issue during installation on android device from android studio.here attaching the output raised in console before and after updating the android studio.

更新到android studio 2.3之前

$ adb push E:\mynewapp\TestDemo\TestDemo\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.gangsofcoder.testdemo
$ adb shell pm install -r "/data/local/tmp/com.example.gangsofcoder.testdemo"
    pkg: /data/local/tmp/com.example.gangsofcoder.testdemo
Success

更新到android studio 2.3后

$ adb install-multiple -r E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\dep\dependencies.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_1.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_3.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_0.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_2.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_4.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_6.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_5.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_7.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_8.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\intermediates\split-apk\debug\slices\slice_9.apk
 E:\SurajBahadur\testdemoApp\testdemo\app\build\outputs\apk\app-debug.apk

安装APK时出错

推荐答案

这是由工作室2.3中的即时运行功能引起的,您可以通过以下方式禁用它:

This is caused by "instant run" feature in studio 2.3, you can disable it by:

打开设置或首选项对话框。
导航到构建,执行,部署>即时运行。
取消选中启用即时运行旁边的复选框。

Open the Settings or Preferences dialog.Navigate to Build, Execution, Deployment > Instant Run.Uncheck the box next to Enable Instant Run.

更多信息,请检查:

这篇关于如何在Android Studio 2.3中停止安装多个切片APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:54