安装失败并显示消息无法提交安装会话 [英] Installation failed with message Failed to commit install session

查看:78
本文介绍了安装失败并显示消息无法提交安装会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过 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.

推荐答案

我在设置中禁用了Instant Run",它对我有用.(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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆