INSTALL_FAILED_UPDATE_INCOMPATIBLE:包签名与之前安装的版本不匹配;无视 [英] INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package signatures do not match the previously installed version; ignoring

查看:77
本文介绍了INSTALL_FAILED_UPDATE_INCOMPATIBLE:包签名与之前安装的版本不匹配;无视的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试生成调试 apk 以直接在设备上更新应用程序时出现此错误(Android - React Native):

I get this error when trying generate a debug apk for update an app directly on the device (Android - React Native):

任务:app:installDebug"执行失败.

Execution failed for task ':app:installDebug'.

com.android.builder.testing.api.DeviceException:com.android.ddmlib.InstallException:无法完成会话:INSTALL_FAILED_UPDATE_INCOMPATIBLE:包prensa.com签名做与之前安装的版本不匹配;无视!

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package prensa.com signatures do not match the previously installed version; ignoring!

我确定版本代码和版本名称递增并且包名称相同.

Im sure that version code and version name were incremented and the package name is the same.

此外,keystore 和其他密钥的使用方式相同.

Also, the keystore and other keys are same used before.

错误在哪里?

推荐答案

我今天遇到了同样的错误.我找到了这个http://blog.bihe0832.com/android-v2-issue.html.它是中文的.关键点描述如下:

I met the same error today.And I found thishttp://blog.bihe0832.com/android-v2-issue.html.It's in Chinese.The key points describe below:

打包你的apk文件后,解压,检查文件META-INF/ANY-NAME.SF.I 使用 jarsigner 命令行签署 apktool.I 发现 alias 在 exec 时放在 jar 文件之后jarsigner,将用作ANY-NAME.然后打开ANY-NAME.SF,如果你发现一行X-Android-APK-Signed: 2,这就是导致error.Resign 你的apk,如果代码行消失了,apk 将是安装成功.

After package your apk file, unzip it,check the file META-INF/ANY-NAME.SF.I sign the apk with jarsigner command line tool.I found that the alias putted after the jar-file when exec the jarsigner, will used as the ANY-NAME.Then open the ANY-NAME.SF, if you found a line of X-Android-APK-Signed: 2,That's the cause of the error.Resign your apk,if the line of code gone, the apk will be installed success.

这篇关于INSTALL_FAILED_UPDATE_INCOMPATIBLE:包签名与之前安装的版本不匹配;无视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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