gpt4 book ai didi

android - 应用程序安装失败,消息为 : Failed to commit install session

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:55:36 25 4
gpt4 key购买 nike

昨天,我的应用在 Android Studio 中完美运行。但是今天当我升级到 Android Studio 3.4 Canary 6 时,我开始不断收到以下错误消息:

Installation failed with message Failed to commit install session 1249295977 with command cmd package install-commit 1249295977.

It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

错误对话框:

Application installation failed

当我单击“确定”然后重新运行时,我收到此错误消息。

Session 'app':Error Installing APKs

我尝试手动删除该应用程序,但它已从我的手机中删除。重启 Android Studio,使缓存失效和重建也不起作用。

最佳答案

检查4种方式:

方式一:关闭 Instant Run

File > Settings > Build,Execution,Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

方法 2: 转到构建 --> 清理项目并再次运行

方式三:使用小米手机的用户,按照以下步骤操作:

Settings-> Additional Settings-> Developer opetions

Turn off MIUI Optimization and reboot your phone

Last Disable verify app over USB

方式4:在android studio中运行Invalidate caches/restart

Choose the File option in windows and preference in mac
Select Invalidate caches/restart.
Click Invalidate and restart.

关于android - 应用程序安装失败,消息为 : Failed to commit install session,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53624854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com