首页 > 其他 > 详细

sdkman安装gradle失败Stop! The archive was corrupt and has been removed! Please try installing again.

时间:2020-01-01 21:22:48      阅读:170      评论:0      收藏:0      [点我收藏+]
问题: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

 

sdkman安装gradle失败Stop! The archive was corrupt and has been removed! Please try installing again.

原文:https://www.cnblogs.com/meitian/p/12129857.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!