dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is /home

idea gradle项目在build的时候,会报如下错误:

Errors occurred while build effective model from C:\Users\Maxtropy\.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom:
    'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is /home/tclement/plf-release-tools/tools/jdk1.7.0_67/jre/../lib/tools.jar in org.crashub:crash.shell:1.3.2

是因为在这个路径下

C:\Users\Maxtropy\.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom

的文件中,定义了相对路径

 <systemPath>/home/tclement/plf-release-tools/tools/jdk1.7.0_67/jre/../lib/tools.jar</systemPath>

把它改成绝对路径就解决了

<systemPath>C:/jdk/lib/tools.jar</systemPath>

发布了24 篇原创文章 · 获赞 3 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/jiejiewish/article/details/94456792
今日推荐