在项目Zxing项目作为库不会建 [英] Zxing project as library in a project won't build

查看:151
本文介绍了在项目Zxing项目作为库不会建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(再次)我想用斑马线库在我的项目,我跟着这个教程
<一href=\"http://damianflannery.word$p$pss.com/2011/06/13/integrate-zxing-bar$c$c-scanner-into-your-android-app-natively-using-eclipse/\" rel=\"nofollow\">http://damianflannery.word$p$pss.com/2011/06/13/integrate-zxing-bar$c$c-scanner-into-your-android-app-natively-using-eclipse/
建设zxing Android项目并将其标记为库后,[只有我使用NetBeans差异],我想它的OD在我自己的项目库。这样做之后,我无法建造。它看起来像R档不能在这两个创建[图书馆和myProject的]例如:

 错误:需要不断前pression
        案例R.id.zxinglib_auto_focus:


解决方案

它不能直接用作库项目,因为它不打算用作库项目,这是一般气馁。请参阅上同一职位我的意见。

<一个href=\"http://damianflannery.word$p$pss.com/2011/06/13/integrate-zxing-bar$c$c-scanner-into-your-android-app-natively-using-eclipse/#comment-159\" rel=\"nofollow\">http://damianflannery.word$p$pss.com/2011/06/13/integrate-zxing-bar$c$c-scanner-into-your-android-app-natively-using-eclipse/#comment-159

( again ) I want to use the ZXing library in my project, I followed this tutorial http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/ [ only difference I'm using netbeans ]after building zxing android project and marking it as a library, I wanted to od it as a library in my own project. After doing it, I can't build it. It looks like the R file can't be created in both [library and myProject ] for example:

 error: constant expression required
        case R.id.zxinglib_auto_focus:

解决方案

It can't be used as a library project directly, since it was not intended to be used as a library project, and this is generally discouraged. Please see my comments on that same post.

http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/#comment-159

这篇关于在项目Zxing项目作为库不会建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆