安装未能完成会话...签名不一致-Android [英] Installation failed to finalize session... Signatures are inconsistent - Android

查看:86
本文介绍了安装未能完成会话...签名不一致-Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行我的项目,但出现此错误:

I am trying to run my project but I get this error:

安装失败,并显示消息无法完成会话: INSTALL_FAILED_INVALID_APK:/data/app/vmdl1841863905.tmp/11_app-debug 签名不一致.可能是这个问题 通过卸载apk的现有版本来解决(如果已安装) 当前,然后重新安装.

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/vmdl1841863905.tmp/11_app-debug signatures are inconsistent. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

警告:卸载将删除应用程序数据!

WARNING: Uninstalling will remove the application data!

您要卸载现有的应用程序吗?

Do you want to uninstall the existing application?

如果我按是,几秒钟后它只会显示相同的错误.我试图手动删除该应用程序,但该应用程序已从手机中删除.

If I press yes, after some seconds it just shows the same error. I tried to manually delete the application but the application is already deleted from my phone.

推荐答案

当我尝试打开从其他路径或位置移动的项目时,在Android Studio中通常会发生此错误,也可能是其他情况导致的.对我有用的是:

This error usually happens to me in Android Studio when I try to open a project that was moved from another path or location, also other circumstances might cause this, what works for me is:

  • 构建"菜单
  • 运行重建项目".

然后在设备或仿真器上运行应用程序,错误消失了.我知道错误与此无关,但这就是为我解决的问题,请尝试让我知道.

Then run app on device or emulator, and error goes away. I know the error has nothing to do with this but that's what fixes it for me, try and let me know.

这篇关于安装未能完成会话...签名不一致-Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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