androidstudio Application Installation Failed 真机安装app安装失败提示

今天从新安装了AS 然后真机安装app时出现以下错误提示

Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package kchelmetcamera.example.com.kchelmetcameraas signatures do not match the previously installed version; ignoring!.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

Unknown failure (at android.os.Binder.execTransact(Binder.java:675))
Error while Installing APKs
这里写图片描述

在运行的时候出现提示大致意思:卸载删除已存在应用程序,是否卸载现有应用程序,点击ok就会出现如下错误

解决办法:

方法一

clean project一下就好(本人试过有效)这里写图片描述

方法二

原应用程序也没有卸载,然后自己手动卸载了,并且清理了内存,再次运行还是一样结果,原以为是我电脑的问题,换个电脑测试还是一样,这就有点尴尬了,后来查资料,经过测试,这个方法还是奏效的
File —> Settings —> Build,Execution,Deployment —> Instant Run

把Enable Instant Run to选项去掉再重新运行一遍就通过了
这里写图片描述

发布了43 篇原创文章 · 获赞 9 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_38355313/article/details/79608346
今日推荐