Explorar o código

将gradle版本修改为gradle-9.2.1-bin,成功启动,这个版本好像配置有点兼容问题,根目录gradle.properties中必须有android.builtInKotlin=false,android.newDsl=false

yangjunjie hai 5 meses
pai
achega
03bb6d56e2
Modificáronse 3 ficheiros con 19 adicións e 6 borrados
  1. 15 2
      gradle.properties
  2. 1 1
      gradle/wrapper/gradle-wrapper.properties
  3. 3 3
      settings.gradle

+ 15 - 2
gradle.properties

@@ -1,5 +1,18 @@
 # Project-wide Gradle settings
 # ?? AndroidX ?? (??)
-android.useAndroidX=true
 # ???????????????? AndroidX (??)
-android.enableJetifier=true
+#android.enableJetifier=true
+#android.defaults.buildfeatures.resvalues=true
+#android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
+#android.enableAppCompileTimeRClass=false
+#android.usesSdkInManifest.disallowed=false
+#android.r8.optimizedResourceShrinking=false
+android.builtInKotlin=false
+android.newDsl=false
+
+android.useAndroidX=true
+android.uniquePackageNames=false
+android.dependency.useConstraints=true
+android.r8.strictFullModeForKeepRules=false
+
+android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false

+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -1,7 +1,7 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 # ?? Gradle 9.3.1 ????
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
 networkTimeout=10000
 validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME

+ 3 - 3
settings.gradle

@@ -12,9 +12,9 @@ pluginManagement {
         // mavenCentral()
     }
     plugins {
-        id 'com.android.application' version '8.13.0' apply false
-        id 'com.android.library' version '8.13.0' apply false
-        id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
+        id 'com.android.application' version '9.0.0' apply false
+        id 'com.android.library' version '9.0.0' apply false
+        id 'org.jetbrains.kotlin.android' version '2.2.10' apply false
     }
 }