Error when compiling with gradle (can't find downloaded dependencies)

对着背影说爱祢 提交于 2019-11-30 15:42:44

finally i solved this setting the environmental variable GRADLE_USER_HOME in windows to c:/gradle-cache

so definitively it's related to file path lenght

I meet this same error in windows jenkins

I solved this error.

gradle assembleDebug -g C:\gradle-cache

-g:

gradle -h

-g, --gradle-user-home    Specifies the gradle user home directory

Path length cause failure.

I defined

"-Dorg.gradle.user.home=%GRADLE_USER_HOME%"

in gradle run parameters and it solved the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!