there are so many examples but I am still not able to add this, because this is showing different errors..
someone please tell me how to add this project to my project as a library. I need zxing library
please tell me how to add as a module
there are so many examples but I am still not able to add this, because this is showing different errors..
someone please tell me how to add this project to my project as a library. I need zxing library
please tell me how to add as a module
You can include this library,it's based ZXing
Add the following to your build.gradle file:
repositories {
jcenter()
}
dependencies {
compile 'com.journeyapps:zxing-android-embedded:3.3.0'
compile 'com.android.support:appcompat-v7:23.1.0' // Version 23+ is required
}
There is a library called ZXing Android Embedded which uses ZXing internally. This library is easy to be integrated with your current Android project.
As instructions say, you should add the following lines to your module build.gradle
file.
dependencies {
compile 'com.journeyapps:zxing-android-embedded:3.3.0'
compile 'com.android.support:appcompat-v7:23.1.0'
}
Note that you should have com.android.support:appcompat
library installed. In this example version 23.1.0
of it is being used, you may change it.
Also note that if you already have a dependencies
section in your build.gradle
file, it's enough to add the compile
lines to that section.
Alternatively you can download the library manually from bintray and add it to your project.