如何解决不同的签名错误
我从谷歌的 android.git.kernel.org 获取了计算器源代码,并成功构建了项目,没有出现问题。但是当我在 eclipse 中启动它时,我得到了这个
Re-installation failed due to different application signatures.
[2011-08-14 03:37:04 - JvCalculator] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-14 03:37:04 - JvCalculator] Please execute 'adb uninstall com.android.calculator2' in a shell.
[2011-08-14 03:37:04 - JvCalculator] Launch canceled!
,我认为我的模拟器中没有该应用程序。所以我认为这不是卸载/安装问题。我怀疑谷歌的源代码有不同的签名。如果是这样我该如何改变它?有没有人解决这个问题?或者我必须通过复制和粘贴来构建一个新项目吗?
请注意,当我在连接模拟器时尝试执行以下操作时,
adb uninstall com.android.calculator2
我收到了一条简单的单字错误消息“失败”。
I got Calculator source code from google's android.git.kernel.org and successfully build the project without problem. But when I launch it in eclipse, I got this
Re-installation failed due to different application signatures.
[2011-08-14 03:37:04 - JvCalculator] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-14 03:37:04 - JvCalculator] Please execute 'adb uninstall com.android.calculator2' in a shell.
[2011-08-14 03:37:04 - JvCalculator] Launch canceled!
I don't think I have the application in my emulator. So it's not uninstall/install problem, I think. I suspect that the google's source code has different signature. If so how I can change it? Is there anybody that resolved this issue? Or do I have to build a new project with copy and paste?
Note that when I tried following while connecting emulator,
adb uninstall com.android.calculator2
I got a simple one-word error message "Failure".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“如何将计算器(或任何应用程序)从 git 存储库(或源代码)安装到任何已安装的设备上?”您无法更改签名,因为这是 Google 或(任何其他应用程序开发人员)严密保守的秘密。您可以做的是更改应用程序的包,使用不同的包系统会认为它是一个不同的应用程序。
"How can I install Calculator (or any app) from the git repository (or from source) to any device that already has it installed?" You can't change the signature because that is a closely guarded secret at Google or (any other app developer). What you can do is change the application's package, with a different package the system will think its a different app.
我遇到了这个问题。通过 adb 卸载就可以了:
I had this exact problem. Uninstalling via adb did the trick:
有同样的错误,但我正在已安装该应用程序的设备上测试该应用程序(某些旧版本)。卸载后,它可以正常工作,无需重命名软件包或进行其他更改。
Had same error, but I was testing the app on a device that had the app already installed (some old version). After uninstalling it worked without renaming the packages or other changes.