How to open Zxing project in Android Studio and compile it?

603 Views Asked by At

I downloaded the Zxing project and I'd like to open it in Android Studio and compile it.
How can I do that?

1

There are 1 best solutions below

9
On

Create a new Java library module:

enter image description here

Copy Zxing source code to this folder:

enter image description here

Ctrl+Shift+F9 to build this module.

Select your main project and press F4 to open project structure. Click dependencies and add the Zxing module:

enter image description here

Now you can use Zxing Classes and build your Android project.