简体   繁体   English

如何使ZXing条码扫描仪与2.2及更高版本的Android兼容

[英]How can I make ZXing Barcode Scanner compatible with 2.2 and above Android

I want ZXing Barcode Scanner compatible with android 2.2 and above. 我希望ZXing条码扫描仪与android 2.2及更高版本兼容。

What I did - I used Zing 2.3.0 in my application and its perfectly working in 4.0 and above 我所做的-我在应用程序中使用了Zing 2.3.0,并且在4.0及更高版本中均可完美运行

but when I run in android 2.2 and I click the button to start scanner the application got crashed. 但是当我在android 2.2中运行时,我单击按钮启动扫描仪,导致应用程序崩溃。

What extra I need to implement ?? 我还需要实现什么?

Note: I have added CaptureActivity project from zxing as a library in my project and CaptureActivity and MyProject in both the menifest file minsdk is 8 and targeted is 17 注意:我已经将zxing中的CaptureActivity project添加为CaptureActivity project中的库,并且清单文件minsdk中的CaptureActivity和MyProject均为8,目标为17

The code has not been written for Android 2.2 compatibility in a long time. 长期以来,该代码尚未为实现Android 2.2兼容性而编写。 You can go back further to find such a version. 您可以进一步返回以找到这样的版本。 But I would encourage you to write your own app and just reuse the core library instead. 但我鼓励您编写自己的应用程序,而只是重用核心库。 Also there are very few Android 2.2 devices anymore, less than 1%. 另外,现在很少有Android 2.2设备,不到1%。 It is not really worth supporting. 这确实不值得支持。

Late answer sorry, but zxing-android-minimal was available when you asked your question! 延迟回答很抱歉,但是当您提出问题时, zxing-android-minimal可用!

It's a port of (the great) zxing but supports Android 7+. 这是(很棒的)zxing的移植版本,但支持Android 7+。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Zxing项目条形码扫描仪如何支持“工业2之5条形码”? -安卓 - How can support “Industrial 2 of 5 barcode” in Zxing project barcode scanner? -Android 如何将Zxing条码扫描仪编译为共享库以在Android项目中使用? - How to compile Zxing barcode scanner as a shared library to use in Android projects? 将Zxing条形码扫描仪集成到我的android应用中 - Integrating Zxing Barcode scanner to my android app 条码扫描器(ZXing)崩溃 - Barcode Scanner (ZXing) crashing 如何在Java中使用Zxing从手持式条形码扫描仪读取条形码 - How to read barcode from handheld barcode scanner using zxing in Java 使用 ZXing 库中的 IntentIntegrator 时,我可以通过 Intent 向条码扫描器添加闪光按钮吗? - While using the IntentIntegrator from the ZXing library, can I add a flash button to the barcode scanner via the Intent? Zxing条码扫描器与Android应用集成后无法扫描条码 - Zxing barcode scanner not scanning barcodes when intergrated with android app zxing条码扫描器需要向android清单文件添加什么? - What needs to be added to the android manifest file for the zxing barcode scanner? android:任务':app:dexDebug'zxing条码扫描器执行失败 - android: Execution failed for task ':app:dexDebug' zxing barcode scanner ZXing条码扫描器预览宽度 - ZXing Barcode Scanner preview width
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM