简体   繁体   English

如何在Android Studio中打开Zxing项目并进行编译?

[英]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. 我下载了Zxing项目,并希望在Android Studio中将其打开并进行编译。
How can I do that? 我怎样才能做到这一点?

Create a new Java library module: 创建一个新的Java库模块:

在此处输入图片说明

Copy Zxing source code to this folder: 将Zxing源代码复制到此文件夹中:

在此处输入图片说明

Ctrl+Shift+F9 to build this module. Ctrl + Shift + F9构建此模块。

Select your main project and press F4 to open project structure. 选择您的主项目,然后按F4打开项目结构。 Click dependencies and add the Zxing module: 单击依赖项,然后添加Zxing模块:

在此处输入图片说明

Now you can use Zxing Classes and build your Android project. 现在,您可以使用Zxing类并构建您的Android项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Android studio中添加ZXing android项目作为库 - Add ZXing android project as library in android studio 如何将ZXING导入android studio? - How to import ZXING to android studio? 如何将ZXing集成到Android Studio项目中,以便我可以在Core目录中编辑代码 - How to integrate ZXing in Android Studio project so that I can edit code in the Core directory 如何将Zxing库包含到android项目中? - How to include Zxing library to android project? 如何编译zxing到aar? - How to compile zxing to aar? 如何将android项目导入为库而不将其编译为apk(Android studio 1.0) - How to import android project as library and NOT compile it as apk (Android studio 1.0) 已加载“旧” Android Studio项目-Studio更新后,它将不再打开/编译,要求更新版本吗? - Loaded “old” Android Studio project - after Studio updates it will no longer open/compile asking for even newer version? 如何将Zxing条码扫描仪编译为共享库以在Android项目中使用? - How to compile Zxing barcode scanner as a shared library to use in Android projects? Android Studio QR码扫描仪Zxing。 如何在我的应用程序中打开QR码扫描的结果(URL链接)? - Android Studio QR Code Scanner Zxing. How can I open the Result of the QR Code scan (URL Link) within my Application? Android Studio无法打开项目 - Android Studio cannot open a project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM