1. 程式人生 > >Gradle sync failed: Read timed out

Gradle sync failed: Read timed out

 

23:52    Gradle sync started

23:54    Gradle sync failed: Read timed out
            Consult IDE log for more details (Help | Show Log) (2 m 29 s 815 ms)

 

原因是Gradle下載超時

一.下載

https://gradle.org/releases/

二.安裝

$ mkdir /opt/gradle
$ unzip -d /opt/gradle gradle-4.10.2-bin.zip
$ ls /opt/gradle/gradle-4.10
.2 LICENSE NOTICE bin getting-started.html init.d lib media

三.配置系統變數

$ export PATH=$PATH:/opt/gradle/gradle-4.10.2/bin

四.驗證

$ gradle -v

------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

 

 

參考:

https://blog.csdn.net/tangjie134/article/details/79495204

https://gradle.org/install/