中停止安装多个切片

中停止安装多个切片

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

问题描述

将android studio更新到2.3版后.我在从 android studio 安装到 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 时出错

推荐答案

这是由 studio 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.

更多信息,请查看:https://developer.android.com/studio/run/index.html

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

09-03 11:54