Skip to content

Commit 4052111

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

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ android {
3434
}
3535
}
3636

37-
namespace 'com.hjq.permissions.demo'
38-
3937
applicationVariants.configureEach { variant ->
4038
// apk 输出文件名配置
4139
variant.outputs.configureEach { output ->

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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
4-
id 'maven-publish'
54
}
65

76
tasks.register('clean', Delete) {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ org.gradle.jvmargs=-Xmx1536m
1818

1919
# Compilation failed while handling compileSdk 35
2020
# https://stackoverflow.com/questions/78678063/android-15-update-compilesdk-android-35-cause-an-error-res-table-type-type-e
21-
#android.aapt2Version=8.6.1-11315950
22-
#android.suppressUnsupportedCompileSdk=35
21+
android.aapt2Version=8.6.1-11315950
22+
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
@@ -13,8 +13,6 @@ android {
1313
abortOnError false
1414
}
1515

16-
namespace 'com.hjq.permissions'
17-
1816
android.libraryVariants.configureEach { variant ->
1917
// aar 输出文件名配置
2018
variant.outputs.configureEach { output ->

0 commit comments

Comments
 (0)