简体   繁体   English

如何编译zxing到aar?

[英]How to compile zxing to aar?

I am green with maven, how to compile aar library from zxing project? 我对Maven情有独钟,如何从zxing项目编译aar库? I tried use axis2 maven plugin, but i get error: 我尝试使用axis2 maven插件,但出现错误:

[ERROR] Failed to execute goal on project android: Could not resolve dependencies for project com.google.zxing:android:jar:4.7.0: The following artifacts could not be resolved: com.google.zxing:core:jar:3.1.1-SNAPSHOT, com.google.zxing:android-core:jar:3.1.1-SNAPSHOT: Could not find artifact com.google.zxing:core:jar:3.1.1-SNAPSHOT [错误]无法在项目android上执行目标:无法解析项目com.google.zxing:android:jar:4.7.0的依赖项:无法解析以下工件:com.google.zxing:core:jar:3.1 .1-SNAPSHOT,com.google.zxing:android-core:jar:3.1.1-SNAPSHOT:找不到工件com.google.zxing:core:jar:3.1.1-SNAPSHOT

Whatever you're trying to do, the error means what it says. 无论您要做什么,该错误均表示错误。 There is no 3.1.1-SNAPSHOT artifact until you create and install one locally. 在本地创建并安装一个3.1.1-SNAPSHOT工件之前,不会有此工件。 You can do that with mvn -DskipTests install at the top level. 您可以通过在顶层mvn -DskipTests install来实现。 See also https://github.com/zxing/zxing/wiki/Getting-Started-Developing 另请参见https://github.com/zxing/zxing/wiki/Getting-Started-Developing

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

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