Repository navigation
[Android] Add Flutter 3.50 breaking-change pages for build tool minimums and the Flutter Gradle Plugin Variant API migration - #14053
Draft
reidbaker-agent wants to merge 2 commits into
Conversation
Adds two breaking-change pages for the Flutter 3.50 stable release and lists them in the index: - Raised minimum Android build tool versions: AGP 9.1.1, Gradle 9.3.1, KGP 2.4.10 (when applied), AGP 10 unsupported, and how built-in Kotlin and the new AGP DSL properties interact with the upgrade. - Flutter Gradle Plugin uses the Android Gradle Plugin Variant API: user-visible behavior changes from migrating the Flutter Gradle Plugin to public AGP APIs (APK copy task, per-ABI versionCode, custom build types, assets, add-to-app, flutter build aar) and a migration guide for legacy applicationVariants usage. Fixes flutter/flutter#193713 (publishes the website-page-draft).
- Call out that projects created with Flutter 3.44/3.47 templates (AGP 9.0.1/9.1.0, KGP 2.3.20/2.4.0) are below the new minimums. - Correct the AGP error message sample and the AGP 10 message. - Clarify when the KGP check applies (Flutter auto-applies KGP when android.builtInKotlin=false), and that checks run before the plugin reads the Android DSL rather than 'before anything else'. - Fix apkanalyzer command (manifest version-code). - Describe the 3.50 migrator behavior for android.newDsl accurately and document opting in with android.newDsl=true + android.builtInKotlin=true. - Note finalizeDsl ordering for versionCode and where the flutter.hostAppProjectName warning is visible.
10 of 11 tasks
Contributor
|
@reidbaker, should this be in draft? Let me know if we should get this moving... |
Member
Yes it should be until I review it and say it is ready for human (non agent) eyes. |
reidbaker
self-requested a review
November 11, 2026 21:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of what this PR is changing or adding, and why:
Adds two breaking-change pages that Android developers need before
upgrading to Flutter 3.50 (stable release planned for 2026-11-12), and lists
them under "Released in Flutter 3.50" in the breaking-changes index.
(
/release/breaking-changes/android-build-tool-minimum-versions)Gradle to 9.3.1 (from 8.14.0), and KGP to 2.4.10 (from 2.2.20,
only when KGP is applied). Template defaults are AGP 9.3.1 /
Gradle 9.5.0 / KGP 2.4.20. AGP 10+ is rejected with a new error.
warned about (9.0.1), so AGP 9.0.1–9.1.0 users get no advance warning.
android.builtInKotlin=false) and thenew AGP DSL (
android.newDsl=false) properties are handled when aproject moves to AGP 9 as part of this upgrade, and links to the existing
built-in Kotlin guides for app developers and plugin authors.
that version checks now run first, and the bypass flag.
(
/release/breaking-changes/flutter-gradle-plugin-variant-api)docs/platforms/android/website-page-draft.md,adjusted to the state actually shipping in 3.50: the FGP itself no longer
uses the legacy variant API (
applicationVariants,libraryVariants,versionCodeOverride, AGP internals), butandroid.newDsl=falseisstill set by templates and the migrator, so users' own legacy build
script code keeps working in 3.50. The page tells them to migrate now.
copyFlutterApks<Variant>task,per-ABI
versionCodecomputed from the DSL (with the "multiply by10000" worked example), custom build types copied with
initWith(native debuggability caveat), Flutter assets as a generated source
directory, lazy task registration /
CopyFlutterAssetsTasktype,add-to-app changes (
flutter.hostAppProjectNameno-op, build modefollows the consumed module variant), and
flutter build aarsingleVariantbehavior.per-ABI
versionCode, custom build types, task lookup, add-to-apphosts, and plugin authors, plus the temporary
android.newDsl=falseescape hatch.
Facts were verified against the
flutter-3.50-candidate.0branch(
DependencyVersionChecker.kt,gradle_utils.dart,FlutterPlugin.kt,templates, and migrations), the merged PRs listed in each page's
References section, and an independent fact-check pass whose corrections
are in the second commit.
Follow-ups once this lands (tracked in flutter/flutter#193713): point the
FlutterPlugin.ktKDoc and the contributor doc at the published URL, andreduce
website-page-draft.mdto a pointer.Important
Release-risk finding surfaced while writing this: every project created
with the Flutter 3.44 or 3.47 templates is below the new 3.50 minimums
(3.44 templates: AGP 9.0.1 / KGP 2.3.20; 3.47 templates: AGP 9.1.0 /
KGP 2.4.0; 3.50 minimums: AGP 9.1.1 / KGP 2.4.10), and nothing migrates
those versions automatically. Such projects fail to build on 3.50 until the
developer edits
settings.gradle.kts. The minimum-versions page now saysthis in its warning box. Please confirm this is the intended policy before
the stable release.
Issues fixed by this PR (if any):
PRs or commits this PR depends on (if any):
None. Intended to land with the Flutter 3.50 stable release.
Presubmit checklist
of 80 characters or fewer.