zBarLibary icon indicating copy to clipboard operation
zBarLibary copied to clipboard

🔥 zbar扫描快,zxing可以生成和识别本地,So,我就把他们结合在了一起,这样Android二维码(条形码)功能就更便捷了

Results 46 zBarLibary issues
Sort by recently updated
recently updated
newest added

我设置了自定义类型和码类型设为了BARCODE_PDF417,扫不出东西

小米4 android6.0.1版本,MIUI10.8.9.13开发版 如下面所示,附带测试图 ![TIM截图20191203171437](https://user-images.githubusercontent.com/19651932/70036838-7b1c2d80-15f0-11ea-9e25-2ee533571ba3.png) ![Screenshot_2019-12-03-17-11-59-659_com miui gallery](https://user-images.githubusercontent.com/19651932/70036678-37292880-15f0-11ea-8e63-4c9224a2a8a7.png)

实际测试过程中,遇到一个奇怪的问题,使用oppo部分手机离的距离近一些,反而识别不出来,但是放到40cm左右,识别很快

java.lang.Throwable: java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;)V in class Ljava/util/List; 根本原因时zxing3.4.0中使用了最低版本为api 24的方法导致 public class FinderPatternFinder { private FinderPattern[] selectBestPatterns() throws NotFoundException { ... possibleCenters.sort(moduleComparator); ... } } 解决方法: 1.降级到1.3.6 2.强制指定zxing版本 configurations.all...

如果自己弄activity_qr.xml的话,以后升级版本可能出现问题。

2019-09-18 15:03:19.835 17366-22423/? W/System.err: java.lang.ArrayIndexOutOfBoundsException: length=929; index=-506 2019-09-18 15:03:19.835 17366-22423/? W/System.err: at com.google.zxing.pdf417.decoder.ec.ModulusGF.multiply(ModulusGF.java:105) 2019-09-18 15:03:19.835 17366-22423/? W/System.err: at com.google.zxing.pdf417.decoder.ec.ModulusPoly.evaluateAt(ModulusPoly.java:99) 2019-09-18 15:03:19.836 17366-22423/? W/System.err: at com.google.zxing.pdf417.decoder.ec.ErrorCorrection.decode(ErrorCorrection.java:53) 2019-09-18 15:03:19.836 17366-22423/? W/System.err: at...

![IMG_2706](https://user-images.githubusercontent.com/20924164/63140009-f7274100-c012-11e9-9f5f-853ce1459b0d.JPG)

条码扫描时候手机方向切换无法进行扫描,另外建议屏幕方向切换能不进行重建activity最好,影响体验

.setScreenOrientation(QrConfig.SCREEN_PORTRAIT)//设置屏幕方向 设置屏幕方向之后,进去如果横屏,还是会先横屏,然后再切回竖屏。