重新安装Zxing导入Android项目失败

发布于 2024-12-01 18:48:18 字数 627 浏览 1 评论 0原文

我已将 Zxing for Android 应用程序的示例导入到我的项目中。我没有错误,当我尝试在设备上运行时,控制台给出以下输出:

[2011-08-26 20:57:06 - CaptureActivity] Re-installation failed due to different application signatures.
[2011-08-26 20:57:06 - CaptureActivity] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-26 20:57:06 - CaptureActivity] Please execute 'adb uninstall com.google.zxing.client.android' in a shell.
[2011-08-26 20:57:06 - CaptureActivity] Launch canceled

我尝试在 shell 中执行 adb 命令,但给我“权限被拒绝”。在我的手机中从未安装过这个应用程序之前,有时会出现此错误,我从设备中卸载应用程序,再次运行并工作,但此时我不知道我能做什么。有什么建议吗?

I had import to my project the example of Zxing for Android Application. I dont have errors and when i try to run on device, the console give this output:

[2011-08-26 20:57:06 - CaptureActivity] Re-installation failed due to different application signatures.
[2011-08-26 20:57:06 - CaptureActivity] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-26 20:57:06 - CaptureActivity] Please execute 'adb uninstall com.google.zxing.client.android' in a shell.
[2011-08-26 20:57:06 - CaptureActivity] Launch canceled

I try to execute the adb command in shell but give me "permission denied". Before i never have this app in my phone, sometimes with this error i uninstall app from device, run again and works but at this time i dont know what i can do. any suggestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

神仙妹妹 2024-12-08 18:48:18

您已从市场安装了条形码扫描仪的副本。您正在以相同的名称和包安装您的应用程序。出于安全原因,Android 不允许您这样做,因为您没有以我们当然的方式签署应用程序。

您需要先卸载条形码扫描仪。如果不能,它可能无法卸载,因为它是预安装在手机上的。

但是,问题是您正在尝试使用我们包和我们应用程序名称创建应用程序。事实上,我假设您大部分都复制了我们的源代码。我们认为这是不可接受的。请撰写您自己的申请。如果您需要重复使用我们的部分,那也没关系——它是开源的。但像您在这里所做的那样复制和粘贴它是不行的。

You have a copy of Barcode Scanner installed from the Market. You are installing your app under the same name and package. For security reasons, Android does not allow you do to this, since you have not signed the app in the way we have of course.

You would need to uninstall Barcode Scanner first. If you can't, it is perhaps not uninstallable since it is pre-installed on the phone.

However, the problem is that you are trying to create an application using our package and our app name. In fact I assume you have mostly copied our source code. We do not find this acceptable. Please write your own application. If you need to re-use pieces of ours, that's OK -- it's open source. But it is not OK to copy and paste it so much as you are doing here.

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