欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

halo博客启动时com.google.zxing:core报错

程序员文章站 2022-03-13 21:34:27
错误如下:Errors occurred while build effective model from D:\my_java\apache-maven-3.5.2\maven_repository\caches\modules-2\files-2.1\com.google.zxing\core\3.4.0\b7eab116a61512d8b669efcd69446cc45243bd28\core-3.4.0.pom: 'dependencyManagement.dependencies.dep...

错误如下:
halo博客启动时com.google.zxing:core报错

Errors occurred while build effective model from D:\my_java\apache-maven-3.5.2\maven_repository\caches\modules-2\files-2.1\com.google.zxing\core\3.4.0\b7eab116a61512d8b669efcd69446cc45243bd28\core-3.4.0.pom:
    'dependencyManagement.dependencies.dependency.systemPath' for com.google.android:android:jar must specify an absolute path but is \${env.ANDROID_HOME}\platforms\android-22\android.jar in com.google.zxing:core:3.4.0

解决办法:

  • 1.找到zxing-parent-3.4.0.pom
    halo博客启动时com.google.zxing:core报错

  • 2.在该目录找那个新建一个空txt改名android.jar
    halo博客启动时com.google.zxing:core报错

  • 3.替换绝对路径
    ${env.ANDROID_HOME}\platforms\android-${android.platform}\android.jar

上面替换为绝对路径指定到新建的android.jar
halo博客启动时com.google.zxing:core报错
注意:
com.google.zxing:core和要修改的com.google.zxing-parent的pom文件版本号要对应

本文地址:https://blog.csdn.net/lishuwen7986/article/details/112260095

相关标签: java