gpt4 book ai didi

android - Zxing 项目作为项目中的库不会构建

转载 作者:行者123 更新时间:2023-11-30 03:58:04 26 4
gpt4 key购买 nike

(再次)我想在我的项目中使用 ZXing 库,我遵循了这个教程 http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/[唯一不同的是我使用的是 netbeans]在构建 zxing android 项目并将其标记为一个库之后,我想将它作为我自己项目中的一个库。做完之后,我无法构建它。看起来 R 文件无法同时在 [library 和 myProject ] 中创建,例如:

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

最佳答案

它不能直接用作库项目,因为它不打算用作库项目,通常不鼓励这样做。请查看我对同一帖子的评论。

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

关于android - Zxing 项目作为项目中的库不会构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13028945/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com