今天在IDEA里导入gradle项目后运行报错,在网上查了许多资料才定位到原因所在,记录下来,供以后参考
Errors occurred while build effective model from D:\repository\com\google\zxing\core\3.4.0\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
根据错误提示应该是com.google.zxing包通过ANDROID_HOME变量引用了android.jar。