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
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.