Skip to content

Commit 7100438

Browse files
Fix minSdkVersion compile error (#1850)
flutter.minSdkVersion is 16, which is too low for guaranteed use of google_mobile_ads ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md --------- Co-authored-by: Brett Morgan <[email protected]>
1 parent 4f01fbb commit 7100438

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

game_template/android/app/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ android {
4747
applicationId "com.example.game_template"
4848
// You can update the following values to match your application needs.
4949
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50-
minSdkVersion flutter.minSdkVersion
50+
// google_mobile_ads requires a minimum SDK version of 19
51+
minSdkVersion 19
5152
targetSdkVersion flutter.targetSdkVersion
5253
versionCode flutterVersionCode.toInteger()
5354
versionName flutterVersionName

tool/flutter_ci_script_master.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ declare -ar PROJECT_NAMES=(
4343
"experimental/web_dashboard"
4444
"flutter_maps_firestore"
4545
"form_app"
46-
"game_template"
46+
# TODO(DomesticMouse): The type 'AppLifecycleState' is not exhaustively matched by the switch cases since it doesn't match 'AppLifecycleState.hidden'.
47+
# "game_template"
4748
"google_maps"
4849
"infinite_list"
4950
"ios_app_clip"

0 commit comments

Comments
 (0)