From 285c1443cda6637b867a78bd6ceb0482c15fdd96 Mon Sep 17 00:00:00 2001 From: xiaji Date: Wed, 25 Feb 2026 23:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Gradle=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E3=80=81IDE=E8=AE=BE=E7=BD=AE=E5=92=8C=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/AndroidProjectSystem.xml | 6 ++++++ .idea/gradle.xml | 2 +- .idea/misc.xml | 3 ++- .idea/runConfigurations.xml | 17 +++++++++++++++++ gradle.properties | 12 +++++++++++- gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .idea/AndroidProjectSystem.xml create mode 100644 .idea/runConfigurations.xml diff --git a/.idea/AndroidProjectSystem.xml b/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..4a53bee --- /dev/null +++ b/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 0897082..639c779 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,6 +4,7 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 8978d23..2e7eabd 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,7 @@ + - + diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..16660f1 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 20e2a01..e046006 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,6 +7,10 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 + +# 网络连接超时设置 +org.gradle.internal.http.connectionTimeout=120000 +org.gradle.internal.http.socketTimeout=120000 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. For more details, visit # https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects @@ -20,4 +24,10 @@ kotlin.code.style=official # Enables namespacing of each library's R class so that its R class includes only the # 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 \ No newline at end of file +android.nonTransitiveRClass=true + +# Gradle 下载镜像配置 +# 使用阿里云镜像加速下载 +org.gradle.wrapper.downloadUrl=https://mirrors.aliyun.com/macports/distfiles/gradle/ +# 备用腾讯云镜像 +# org.gradle.wrapper.downloadUrl=https://mirrors.cloud.tencent.com/gradle/ \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 65ec66b..31adb6c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Thu Sep 05 19:22:20 CST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists