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