ZXing 集成到 Android 应用程序时出现错误

发布于 2024-12-19 18:31:56 字数 159 浏览 1 评论 0原文

我已经阅读了一些教程,但我在集成方面遇到了问题。我执行以下顺序: 1)下载源码; 2)生成core.jar 3)从源添加新项目文件夹“android” 4)将 core.jar 添加到“android”项目中

然后我会遇到很多错误 - R 文件不会生成,还有另一个错误。我哪里可能会出错?

I have read a few tutorials, but I have problem with integration. I do this sequence:
1) downloading sources;
2) generating core.jar
3) adding as new project folder "android" from sources
4) add core.jar into "android" project

Then I will got many errors - R file doesn't generate, and another mistakes. Where could I make mistake?

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

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

发布评论

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

评论(2

久隐师 2024-12-26 18:31:56

也许您可以使用 organize Imports - Eclipse 来解决这个问题。

事实上,这个“问题”是当您复制并粘贴代码时发生的冲突。

尝试一下。

问候

Perhaps you can solve that with organize Imports - Eclipse.

In fact, this 'problem' is a conflict that happens when you just copy and paste codes..

Try it.

regards

陌生 2024-12-26 18:31:56

问题是您已将 android/ 中的应用程序复制并粘贴到您的项目中。请不要复制并粘贴我们的应用程序。写你自己的。您不需要我们的应用程序中的任何代码,因为它不是库。如果您需要制作应用程序,您应该使用 core.jar,并重用 Android 源代码的某些部分。

The problem is that you have copied and pasted our app, in android/, into your project. Please do not copy and paste our app. Write your own. You do not need any code from our app as it is not a library. You should use core.jar, and reuse bits of the Android source if you need to make your app.

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