如何解决不同的签名错误

发布于 2024-11-30 02:27:26 字数 711 浏览 0 评论 0原文

我从谷歌的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

薄荷梦 2024-12-07 02:27:26

“如何将计算器(或任何应用程序)从 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.

番薯 2024-12-07 02:27:26

我遇到了这个问题。通过 adb 卸载就可以了:

    adb -d uninstall org.janeullah.android.healthrecords

I had this exact problem. Uninstalling via adb did the trick:

    adb -d uninstall org.janeullah.android.healthrecords
树深时见影 2024-12-07 02:27:26
  1. 尝试制作一个新的模拟器。
  2. 尝试清理项目。
  1. Try making a new emulator.
  2. Try cleaning the project.
—━☆沉默づ 2024-12-07 02:27:26

有同样的错误,但我正在已安装该应用程序的设备上测试该应用程序(某些旧版本)。卸载后,它可以正常工作,无需重命名软件包或进行其他更改。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文