I use android studio I want to import 'ZXING' in my application, I find many articles and found the following site
https://github.com/zxing/zxing/
I downloaded the ZIP and unzip, and find some tutorials But it does not seem to be too detailed about the details, what I need to import? To achieve QRCode scan
I still have no idea how to do it
4/14 I tried Lennon URL provided "zxing-android-minimal" And import the 'gradle-wrapper.jar'
But when I wrote new IntentIntegrator (this) .initiateScan (); Still appear "Can not resolve symbol 'IntentIntegrator" message
I do have a right '.jar select Add As Library But when an error occurs, he does not seem to be added
4/10
Finally no longer appear "Can not resolve symbol 'IntentIntegrator" this is the code,What do I wrong?
I removed the new IntentIntegrator (this) .initiateScan (); 'applications normal operation
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
new IntentIntegrator(this).initiateScan();
}
my 'build.greadle'
repositories {
jcenter()
maven {
url "https://raw.github.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/"
}
}