1. 程式人生 > >AS更新提示Connection failed (Read timed out). Please check network connection and try again.

AS更新提示Connection failed (Read timed out). Please check network connection and try again.

網上大部分的解決方案是在vmoptions裡面新增下面三句程式碼

-Djava.net.preferIPv4Stack=true
-Didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-Didea.patches.url=http://dl.google.com/android/studio/patches/

但我這邊加上之後,重啟電腦,各種清快取,點選更新按鈕還是提示Connection failed (Read timed out). Please check network connection and try again.

最後在AS版本3.0的settings裡面找到了Use secure connection這個選項

大意是使用安全的連線方式,把前面的勾選去掉,再點選更新按鈕就不會出現超時了。

下面記錄下更新渠道含義:

Stable Channel:正式版本通道

Beta Channel:測試版本通道

Dev Channel:開發釋出通道

Canary Channel:預覽釋出通道