天天看點

Gradle離線配置

原文:

Gradle離線配置

1. 先在Gradle官網下載下傳最新的離線zip壓縮包。

https://gradle.org/

2. 将下載下傳的zip壓縮包,儲存到本地磁盤下的目錄中。

Gradle離線配置

3. 修改(gradle/wrapper/gradle-wrapper.properties)中的distributionUrl,使其指向zip壓縮包的本地路徑。

Gradle離線配置

4. 修改 File->Settings->Build,Execution,Deployment->Gradle 的配置。

Gradle離線配置

繼續閱讀