Kaynağa Gözat

flutter使用的版本是3.19.4,对应升级gradle配置

周素华 1 yıl önce
ebeveyn
işleme
4ce47be0c0
2 değiştirilmiş dosya ile 10 ekleme ve 17 silme
  1. 0 13
      android/build.gradle
  2. 10 4
      android/settings.gradle

+ 0 - 13
android/build.gradle

@@ -1,16 +1,3 @@
1
-buildscript {
2
-    ext.kotlin_version = '1.8.22'
3
-    repositories {
4
-        google()
5
-        mavenCentral()
6
-    }
7
-
8
-    dependencies {
9
-        classpath 'com.android.tools.build:gradle:7.3.0'
10
-        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11
-    }
12
-}
13
-
14 1
 allprojects {
15 2
     repositories {
16 3
         google()

+ 10 - 4
android/settings.gradle

@@ -10,11 +10,17 @@ pluginManagement {
10 10
 
11 11
     includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12 12
 
13
-    plugins {
14
-        id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
13
+    repositories {
14
+        google()
15
+        mavenCentral()
16
+        gradlePluginPortal()
15 17
     }
16 18
 }
17 19
 
18
-include ":app"
20
+plugins {
21
+    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22
+    id "com.android.application" version "7.3.0" apply false
23
+    id "org.jetbrains.kotlin.android" version "1.7.10" apply false
24
+}
19 25
 
20
-apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
26
+include ":app"