Skip to content

Commit a557d3d

Browse files
committed
将 Gradle 版本回滚到 7.4
处理 compileSdk 35 导致的编译问题
1 parent 526aacc commit a557d3d

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ apply from : '../common.gradle'
44

55
android {
66

7-
namespace 'com.hjq.language.demo'
8-
97
defaultConfig {
108
applicationId "com.hjq.language.demo"
119
minSdkVersion 16

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'com.android.application' version '8.4.2' apply false
2+
id 'com.android.application' version '7.1.0' apply false
33
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
44
}
55

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ android.enableJetifier = true
2323

2424
# Compilation failed while handling compileSdk 35
2525
# https://stackoverflow.com/questions/78678063/android-15-update-compilesdk-android-35-cause-an-error-res-table-type-type-e
26-
#android.aapt2Version=8.6.1-11315950
27-
#android.suppressUnsupportedCompileSdk=35
26+
android.aapt2Version=8.6.1-11315950
27+
android.suppressUnsupportedCompileSdk=35

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ zipStoreBase = GRADLE_USER_HOME
22
zipStorePath = wrapper/dists
33
distributionBase = GRADLE_USER_HOME
44
distributionPath = wrapper/dists
5-
distributionUrl = https\://services.gradle.org/distributions/gradle-8.6-bin.zip
5+
distributionUrl = https\://services.gradle.org/distributions/gradle-7.4-all.zip

library/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apply from : '../common.gradle'
33

44
android {
55

6-
namespace 'com.hjq.language'
7-
86
defaultConfig {
97
minSdkVersion 14
108
}

0 commit comments

Comments
 (0)