錯誤如下:

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

-
2.在該目錄找那個新建一個空txt改名android.jar

-
3.替換絕對路徑
${env.ANDROID_HOME}\platforms\android-${android.platform}\android.jar
上面替換為絕對路徑指定到新建的android.jar

注意:
com.google.zxing:core和要修改的com.google.zxing-parent的pom檔案版本號要對應
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/245702.html
標籤:其他
