sdk 没有下拉 gradle

sdk is not pulling down gradle

我正在寻找使用 gradle、groovy、maven 以及 sdkman 支持的其他产品来开发应用程序。我在 windows 10 机器上使用 cygwin。一切似乎都很好,并更新了所需的大多数软件包。当我开始安装 gradle 时,sdk 根本无法下载 gradle 的任何版本。这是一个错误还是我遗漏了什么。这是我从我的 cygwin 控制台得到的。

Admin@Dale-PC ~
$ sdk install gradle

Downloading: gradle 2.14.1

In progress...

########################################################################     100.0%
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/Admin/.sdkman/archives/gradle-2.14.1.zip or
    /home/Admin/.sdkman/archives/gradle-2.14.1.zip.zip, and cannot find /home/Admin/.sdkman/archives/gradle-2.14.1.zip.ZIP, period.

Stop! The archive was corrupt and has been removed! Please try installing again.

Admin@Dale-PC ~

好像sdk自以为知道它在哪里,但是当它要拉下来的时候,它并没有拉下来。然后sdk去解包也找不到。任何意见,将不胜感激。顺便说一句,我没有通过代理,其他一切似乎都安装得很好。只是 gradle 有问题。另外,为什么它试图拉下旧版本的 gradle (2.14.1)?

v2.14.1 gradle 的最新版本。请参阅 here and here(3 目前处于测试阶段)

文件名 .zip.zip 似乎有误。可能是 sdkman 的缺陷。不确定是不是您在 github 上报告的,但是:https://github.com/sdkman/sdkman-cli/issues/445

我已经下载了 v2.14.1-all 版本,将文件重命名为 gradle-2.14.1.zip.zip 并将其放在 /home/Admin/.sdkman/archives/ 目录,然后再次为 gradle 安装。这次它找到并安装了它,就好像它下载了正确的版本一样。这是目前的解决方案。