From fc678a6bf22bf1cdc8b83af59c4f290c9d6f95c6 Mon Sep 17 00:00:00 2001 From: hugh <1012760428@qq.com> Date: Thu, 22 Jan 2026 00:50:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91=E9=95=9C=E5=83=8F=E5=92=8C=E4=BC=98=E5=8C=96=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gradle Wrapper 使用腾讯云镜像,避免 GitHub 访问问题 - 增加网络超时时间到 10 分钟 - 启用 Gradle 缓存和按需配置 - 预留代理配置选项 Co-Authored-By: Claude Sonnet 4.5 --- gradle.properties | 15 +++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index fb5778e..4108a9e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,3 +24,18 @@ kotlin.code.style=official # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true + +# 网络配置:禁用 Gradle 版本检查,避免网络问题 +org.gradle.daemon=true +org.gradle.caching=true +org.gradle.configureondemand=true + +# 配置超时时间(毫秒) +systemProp.org.gradle.internal.http.connectionTimeout=600000 +systemProp.org.gradle.internal.http.socketTimeout=600000 + +# 如果需要使用代理,取消以下注释并配置 +# systemProp.http.proxyHost=127.0.0.1 +# systemProp.http.proxyPort=7890 +# systemProp.https.proxyHost=127.0.0.1 +# systemProp.https.proxyPort=7890 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index da1db5f..78fd107 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists