打包遇见的问题 缺少jar包该怎样解决呢?

  • What went wrong:
    A problem occurred configuring root project ‘Edyj’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not download jelastic-public-j2se.jar (com.jelastic:jelastic-public-j2se:5.0.6)
Could not get resource ‘https://repo.cuba-platform.com/content/groups/work/com/jelastic/jelastic-public-j2se/5.0.6/jelastic-public-j2se-5.0.6.jar’.
Read timed out
Could not download commons-codec.jar (commons-codec:commons-codec:1.10)
Could not get resource ‘https://repo.cuba-platform.com/content/groups/work/commons-codec/commons-codec/1.10/commons-codec-1.10.jar’.
Read timed out

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

还是下载超时,有没有按照这个帖子做过配置?

但是没有找到~/.gradle/gradle.properties这个文件 是少了哪些配置吗

这个是在你用户的目录下,windows 上是 C:\Users\{你的用户名}\.gradle\gradle.properties,如果不存在的话,自己创建一个。然后把那两行配置加进去。再重启 IDEA 试试。