build library ZXing for android project

穿精又带淫゛_ 提交于 2019-12-07 07:17:24

Your question is not clear, but I think the answer is this: the source code indeed requires Java 7. You simply need to set your IDE project to use Java 7. The supplied Maven build already works correctly in this regard. It is not true that API 15 or any other Android API needs Java 6.

I found 4.5.1 but I don't know how to download it! if you figured it out let me know too please. https://code.google.com/p/zxing/source/browse/?r=2927#svn%2Ftrunk%2Fandroid

I got the same issue and I solve this by doing:

  1. change the java compiler to 1.7 (like what Nickolai Astashonok suggested)
  2. change the target version to 19 (Android 4.4)
  3. Clean the project again, you will see lots of errors removed but there is still some errors related to missing of CameraConfigurationUtils.java Please go to below link to download and copy the file into your project as per the path suggested.

https://github.com/zxing/zxing/blob/master/android-core/src/main/java/com/google/zxing/client/android/camera/CameraConfigurationUtils.java

  1. Clean the project again, you should be able to clear all the errors and use the sample application in the 'android' folder.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!