ZXing 集成到 Android 应用程序时出现错误
我已经阅读了一些教程,但我在集成方面遇到了问题。我执行以下顺序: 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您可以使用
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
问题是您已将
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 usecore.jar
, and reuse bits of the Android source if you need to make your app.