ERROR: SSL peer shut down incorrectly錯誤解決(Android Studio)


錯誤信息:ERROR: SSL peer shut down incorrectly錯誤解決(Android Studio)

錯誤原因:android studio在下載“gradle-4.10.1-all.zip”文件的時候出現的錯誤,錯誤原因是studio工具不支持https請求

解決方法:

方法1:

點擊開發軟件上方的“SDK Manager”按鈕圖標,進入到窗口里面,選擇“SDK Update Sites”這個選項,勾選下方的“Force https// sources to be fetched using http//”選項,然后重啟Android Studio開發工具,再按照第一種方式的圖片點擊“大象?”圖標重新下載“gradle-4.10.1-all.zip”文件即可

 

 

方法2:

將“gradle-wrapper.properties”文件里面的“distributionUrl=https”中的https改成http即可,然后重新點擊上方的按鈕(?大象)重新下載gradle文件即可,或者“try again”;

gradle-wrapper.properties的路徑:project-gradle-wrapper-gradle-wrapper.properties

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM