問題:sdk install gradle 2.14.1報錯Stop! The archive was corrupt and has been removed! Please try installing again.
Found a previously downloaded gradle 2.14.1 archive. Not downloading it again... 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 /root/.sdkman/archives/gradle-2.14.1.zip or /root/.sdkman/archives/gradle-2.14.1.zip.zip, and cannot find /root/.sdkman/archives/gradle-2.14.1.zip.ZIP, period. rm: remove regular file `/root/.sdkman/archives/gradle-2.14.1.zip'? Stop! The archive was corrupt and has been removed! Please try installing again.
解決方法:
進入sdkman的安裝包目錄,手動下載gradle對應的zip包版本,重命名為 gradle-version.zip
然后在【sdk install gradle 2.14.1】進行安裝
1、手動下載gradle的地址
wget https://downloads.gradle-dn.com/distributions/gradle-2.14.1-all.zip
2、copy zip包到sdkman的壓縮包目錄下
壓縮包路徑:/root/.sdkman/archives
文件名字要改為:gradle-2.14.1.zip
3、重新執行命令安裝對應版本gradle
sdk install gradle 2.14.1