Class not found when using zxing

前端 未结 2 871
梦如初夏
梦如初夏 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:28

    There are only three reasons you will ever get this error:

    1. The class genuinely doesn't exist. If you are using code from an official example and getting this, make sure you have the latest build of the library
    2. You have not added the jar to your build path. To fix this, right click on the jar in Eclipse, and do Build Path ► Add to Build Path.
    3. Your jar is not in the /libs folder. This happens when you have added the jar to the build path, but newer versions of ADT need it to be in /libs. Put it there and re-add it to the build path.

提交回复
热议问题