简体   繁体   中英

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

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

Create a new Java library module:

在此处输入图片说明

Copy Zxing source code to this folder:

在此处输入图片说明

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:

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM