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

后端 未结 3 381
礼貌的吻别
礼貌的吻别 2020-12-10 09:06

I develop an app generation system that is regenerating apps by command line Gradle compilation commands.

In my Windows Server 2008, I\'m facing a problem after upda

相关标签:
3条回答
  • 2020-12-10 09:41

    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

    0 讨论(0)
  • 2020-12-10 09:41

    Path length cause failure.

    I defined

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

    in gradle run parameters and it solved the problem.

    0 讨论(0)
  • 2020-12-10 09:47

    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
    
    0 讨论(0)
提交回复
热议问题