How to integrate ZXing Library to Android Studio for Barcode Scanning?

前端 未结 4 1771
情书的邮戳
情书的邮戳 2020-12-02 13:36

I\'ve been looking all over internet how to include zxing library to my project, and I found this tutorial: http://blog.dihaw.com/integrating-zxing-in-your-android-app-as-st

4条回答
  •  天命终不由人
    2020-12-02 14:04

    As of version 3 of zxing-android-embedded you only need to add these to your build.gradle file:

    repositories {
        jcenter()
    }
    
    dependencies {
        compile 'com.journeyapps:zxing-android-embedded:3.0.2@aar'
        compile 'com.google.zxing:core:3.2.0'
    }
    

    Follow the steps in: https://github.com/journeyapps/zxing-android-embedded/

    It now also allows for portrait mode with simple changes to the IntentIntegrator, and easier ways to customize the views.

提交回复
热议问题