How to integrate Zxing Barcode Scanner without installing the actual zxing app (cannot resolve symbol: .android.CaptureActivity)?

前端 未结 8 1522
我寻月下人不归
我寻月下人不归 2020-12-07 10:04

I want to integrate zxing scanner into my app without needed of external application (zxing scanner from play store). This is my code

Button scan = (Button)         


        
8条回答
  •  [愿得一人]
    2020-12-07 10:23

    As this thread is old, but I have just came into this issue. So, I am just posting for anyone else who is on Android Studio and want to integrate core classes. All you need to do, is just add this dependency

    implementation 'com.google.zxing:core:x.x.x'
    

    Android Studio will automatically suggest you the latest version for the above.

提交回复
热议问题