我是maven新手,如何从zxing项目编译aar库? 我尝试使用 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
最佳答案
无论您想做什么,错误都会如其所言。在您在本地创建并安装一个 3.1.1-SNAPSHOT Artifact 之前,并不存在该 Artifact 。您可以使用顶层的 mvn -DskipTests install
来完成此操作。另请参阅https://github.com/zxing/zxing/wiki/Getting-Started-Developing
关于java - 如何将zxing编译为aar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28369586/