瀏覽代碼

Back on work

c90Beretta 5 月之前
父節點
當前提交
11ab9bcf1c

+ 2 - 1
android/app/build.gradle

@@ -28,12 +28,13 @@ android {
 
     defaultConfig {
         applicationId "com.example.sis_flutter"
-        minSdkVersion 21 
+        minSdkVersion 27
         targetSdkVersion 34
         versionCode flutterVersionCode.toInteger()
         versionName flutterVersionName
         ndkVersion flutter.ndkVersion
     }
+    ndkVersion = "26.1.10909125"
 
     compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8

+ 1 - 0
android/build.gradle

@@ -18,6 +18,7 @@ allprojects {
 }
 
 rootProject.buildDir = '../build'
+
 subprojects {
     project.buildDir = "${rootProject.buildDir}/${project.name}"
 }

+ 3 - 0
android/gradle.properties

@@ -1,3 +1,6 @@
 org.gradle.jvmargs=-Xmx4G
 android.useAndroidX=true
 android.enableJetifier=true
+android.suppressUnsupportedCompileSdk=34
+android.nonTransitiveRClass=false
+android.nonFinalResIds=false

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

@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip

+ 1 - 1
android/settings.gradle

@@ -24,7 +24,7 @@ pluginManagement {
 plugins {
 
     id "dev.flutter.flutter-plugin-loader" version "1.0.0"
-    id "com.android.application" version '7.4.2' apply false
+    id "com.android.application" version '8.6.0' apply false
 }
 
 include ":app"