Android应用程序无法安装。已经安装现有软件包由同名冲突签名 [英] Android App Not Install. An existing package by the same name with a conflicting signature is already installed

查看:2852
本文介绍了Android应用程序无法安装。已经安装现有软件包由同名冲突签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的模拟器,当我试图做我的apk的升级编程。我得到的:

In my emulator, when I try to do an upgrade of my apk programmatically. I get:

Android应用程序不安装。

已经安装现有软件包由同名冲突签名

我仍然在这个升级的测试阶段,所以我下载的文件是一个previous的版本,我想应该没有任何问题签署的apk。

I'm still in the testing phase of this upgrade, so the file I download is a signed apk of a previous version, which I think should work without any issues.

从建议中:<一href="http://stackoverflow.com/questions/19045353/an-existing-package-by-the-same-name-with-a-confilcting-signature-is-already-ins">an已经安装了现有的程序包同名用confilcting签名我想无论是在调试模式和正常模式下运行模拟器......但是都没有成功。

From the suggestion in: an existing package by the same name with a confilcting signature is already installed I tried to run the emulator both in debug mode and in normal mode... neither worked.

这是我缺少的是什么有什么想法?

Any thoughts on what I'm missing?

推荐答案

现在的问题是,如果你直接从你的IDE中运行和打开你的模拟器已经被用于签名的APK,默认情况下该键,安装在APK模拟器与调试键(通常安装在〜/ .android / debug.keystore)签署的,所以如果previous APK与比一个不同的密钥等签订您正在使用你总是会得到的签名冲突,为了解决这个问题,请确保您使用的是同样的密钥签署双方的APK,即使previous APK与调试键从另一个SDK签署,按键肯定会有所不同。

The problem is the keys that have been used to sign the APKs, by default if you are running directly from your IDE and opening your Emulator, the APK installed in the Emulator is signed with your debug-key(usually installed in ~/.android/debug.keystore), so if the previous APK was signed with a different key other than the one you are currently using you will always get the signatures conflict, in order to fix it, make sure you are using the very same key to sign both APKs, even if the previous APK was signed with a debug-key from another SDK, the keys will definitely be different.

此外,如果你不知道到底是什么键被使用之前签署的apk,但要安装您的应用程序的新版本,你可以卸载previous应用程序,并重新安装新的。

Also if you don't know exactly what key was used before to sign the apk and yet you want to install the new version of your app, you can just uninstall the previous application and reinstall the new one.

希望这有助于...

商祺!

这篇关于Android应用程序无法安装。已经安装现有软件包由同名冲突签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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