Simple way with mvn repo:
dependencies { compile 'com.google.zxing:core:3.0.0' }
More working version without mvn repo:
dependencies { compile files('./libs/zxing/core.jar') }
So, whichever version you choose, find the dependency block in build.gradle, and then add the appropriate compilation line. Remember to add it to build.gradle for your application module, not the root build.gradle.
Directory Layout Example: / Approot
/approot/build.gradle
/ approot / myfancyapp
/approot/myfancyapp/build.gradle <--- this one!
/approot/myfancyapp/libs/zxing/core.jar <--- putting a jar here or any path here is just an example.
source share