Class not found when using zxing

前端 未结 2 839
梦如初夏
梦如初夏 2021-01-15 20:15

So i\'m developing an app that can scan QR codes. I downloaded the ZXing library, built it using apache ant to get the core.jar, put it in my project folder and added it as

2条回答
  •  抹茶落季
    2021-01-15 20:27

    Do you have Zxing Barcode Scanner application installed? You have to install the application to scan using intent.

    The CaptureActivity is not in the core.jar library. You have to include their Android project as library if you don't want to install and integrated in your own application. That's a lot of mess. Better install their application.

    Another way is use Zbar library. I found this library easy to use and don't need their application installed. The only matter is if it support your desired barcode. I will recommend to check it out.

    Edit:

    Once I've tried to include zxing natively using this link.

    Add ZXing barcode scanning natively in your Android project

    ZXing QR Reader Direct Integration.

    You can check this out.

提交回复
热议问题