安装失败,并显示消息无法提交安装会话 [英] Installation failed with message Failed to commit install session
问题描述
在尝试通过android studio 3.4 canary 1运行apk时收到错误消息.
Getting an error message while trying to run an apk through android studio 3.4 canary 1.
Gradle插件版本 com.android.tools.build:gradle:3.4.0-alpha01
Gradle plugin version com.android.tools.build:gradle:3.4.0-alpha01
Installation failed with message Failed to commit install session 526049657 with command cmd package install-commit 526049657.. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
我尝试卸载apk,重新启动android studio和设备,并使缓存无效并重建,但是似乎没有任何效果.
I have tried uninstalling the apk, restarting android studio and the device and invalidating caches and rebuilding but nothing seems to work.
推荐答案
我在设置中禁用了即时运行",它对我有用.(Android Studio 3.4 canary)
I disabled "Instant Run" in settings, and it works for me.(Android Studio 3.4 canary)
然后您会看到在终端中执行的adb命令是"adb push",而在禁用之前它是"adb install-multiple".
Then you can see the adb command executed in the terminal is "adb push", while it is "adb install-multiple" before that is disabled.
这篇关于安装失败,并显示消息无法提交安装会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!