@@ -32,7 +32,9 @@ buildscripts.
32
32
33
33
### android/settings.gradle
34
34
35
- Replace the contents of ` <app-src>/android/settings.gradle ` with:
35
+ Replace the contents of ` <app-src>/android/settings.gradle ` with the below,
36
+ remembering to replace ` {{agpVersion}} ` and ` {{kotlinVersion}} ` with previously
37
+ used values:
36
38
37
39
``` gradle
38
40
pluginManagement {
@@ -56,8 +58,8 @@ pluginManagement {
56
58
57
59
plugins {
58
60
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
59
- id "com.android.application" version "7.3.0 " apply false
60
- id "org.jetbrains.kotlin.android" version "1.7.10 " apply false
61
+ id "com.android.application" version "{{agpVersion}} " apply false
62
+ id "org.jetbrains.kotlin.android" version "{{kotlinVersion}} " apply false
61
63
}
62
64
63
65
include ":app"
@@ -73,7 +75,7 @@ Remove the whole `buildscript` block from `<app-src/android/build.gradle`:
73
75
74
76
``` diff
75
77
- buildscript {
76
- - ext.kotlin_version = '1.7.10 '
78
+ - ext.kotlin_version = '{{kotlinVersion}} '
77
79
- repositories {
78
80
- google()
79
81
- mavenCentral()
@@ -174,14 +176,15 @@ the following lines to `<app-src>/android/settings.gradle`:
174
176
``` diff
175
177
plugins {
176
178
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
177
- id "com.android.application" version "7.3.0 " apply false
178
- id "org.jetbrains.kotlin.android" version "1.7.10 " apply false
179
+ id "com.android.application" version "{{agpVersion}} " apply false
180
+ id "org.jetbrains.kotlin.android" version "{{kotlinVersion}} " apply false
179
181
+ id "com.google.gms.google-services" version "4.4.0" apply false
180
182
+ id "com.google.firebase.crashlytics" version "2.9.9" apply false
181
183
}
182
184
```
183
185
184
- and the following lines to ` <app-src>/android/app/build.gradle ` :
186
+ and the following lines to ` <app-src>/android/app/build.gradle ` (remembering to
187
+ replace ` {{agpVersion}} ` and ` {{kotlinVersion}} ` with previously used values):
185
188
186
189
``` diff
187
190
plugins {
0 commit comments