Repository navigation
[AGP 9.1.0 Migration #10] Enable newDsl for built-in Kotlin projects - #194460
Draft
reidbaker-agent wants to merge 39 commits into
Draft
reidbaker-agent wants to merge 39 commits into
reidbaker-agent wants to merge 39 commits into
Conversation
The application path of the Flutter Gradle Plugin no longer uses the deprecated BaseVariant API (applicationVariants / ApkVariantOutput): - CopyFlutterApksTask copies the variant's SingleArtifact.APK outputs, read through BuiltArtifactsLoader, into build/outputs/flutter-apk under the unchanged names app[-abi][-flavor]-<mode>.apk. assemble<Variant> depends on it. The task has no Project or variant fields and uses an injected FileSystemOperations. - A single naming function in the task produces both the declared @OutputFiles and the copied file names. Its inputs are the ABIs of the variant's outputs (what AGP builds), the flavor, and the build mode. The task fails if AGP built an APK for an ABI that was not declared. - Per-ABI versionCode for --split-per-abi is a read-then-set on VariantOutput.versionCode in onVariants. This is a documented exception to the no-configuration-time-get rule, because the lazy form is circular. The read relies on AGP's compatibility mode (android.compatibility.enableLegacyApi, on by default through 9.x). - The applicationVariants.configureEach block and its @Suppress("DEPRECATION") markers are deleted. The add-to-app module path keeps using libraryVariants until the next phase. Behavior change: Flutter's onVariants callback runs before an app's own androidComponents.onVariants block, while ApkVariantOutput's versionCodeOverride was applied after it. Apps that transform output.versionCode there transform Flutter's offset value (for example arm64-v8a, build 42, x10000: 422000 -> 20420000). The migration doc and the breaking-change page draft describe this and give a recipe that keeps the 422000-style numbers. No divergence warning is emitted, because it would fire on the onVariants pattern that AGP recommends. Part of flutter#166550.
…ures - Take the per-ABI versionCode base from a finalizeDsl snapshot of the DSL versionCodes (DslVersionCodes) instead of reading output.versionCode, which AGP rejects during configuration when android.compatibility.enableLegacyApi=false. Warn and skip when the DSL declares no versionCode. - Add a strict-mode (enableLegacyApi=false) case to flutter_build_apk_split_per_abi_test. - CopyFlutterApksTask: use Gradle's Copy/Sync caching annotation and reason; explain when the metadata can be missing and when the ABI check can fail; point both errors at the plugin that transforms SingleArtifact.APK instead of asking for a Flutter issue. - Document what an APK transform must keep in website-page-draft.md. - Link the website-page-draft.md references to tracking issue flutter#193713. - Remove temporal wording from KDoc and docs.
Add-to-app module (library) variants use the same androidComponents.onVariants path as application variants: the compile, assets and jniLibs tasks are registered lazily per library variant, and the assets and native libraries are generated source directories of the variant. The host app consumes them like any Android library. Deletes the host-project lookup, the libraryVariants x applicationVariants cross-wiring, the merge<HostVariant>Assets.dependsOn edge, addFlutterDepsForModule, addCopyFlutterAssetsDependency, shouldConfigureFlutterTask(Project, Task) and buildModeFor(com.android.builder.model.BuildType). flutter.hostAppProjectName has no effect and logs a warning. The jniLibs copy is wired from the compile task provider, so its input directory is required in both copy tasks.
…er comments - CopyFlutterApksTask: state why caching is disabled (local copy; a cache entry would duplicate the APKs) and build both errors through one transformedApkError helper. - Trim comments and KDoc added by this PR to what the code does not already say.
…er-agent/flutter into agp-add-to-app-module # Conflicts: # packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt # packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt
Keep only what the code doesn't say: why library variants are not gated by the command line, why the copy task inputs are required, and what the tests guard. Restore PR 7's shouldCompileFlutterForVariant paragraph verbatim.
Explain why library variants skip the command-line gate, drop the application/library list from the assets comment, drop the 'public variant API' clause, and say what library variants lack in configureApplicationOutputs.
…m_build_test The devicelab test already builds the same host fixture one task at a time. Add a debuggable qa build type that falls back to the module's release variant, and a final section that builds it with android.newDsl=true and flutter.hostAppProjectName set. It checks the warning and that the APK has release Flutter artifacts. Delete android_add_to_app_module_test.dart, which duplicated that setup.
Add stubTaskRegistration, captureTaskConfiguration and setCommandLineTasks, and use them in the add-to-app onVariants tests.
Branch on the variant type at the call site so the function receives an ApplicationVariant and needs no check().
…a section AGP 9.1 and 9.3 deprecate the option. Its consumers back the variant API that android.newDsl=true already removes.
The flutter tool runs Gradle with -q, which hides logger.warn. Log the warning with logger.error, as the plugin's other user-facing warnings do, and state the consequence (Google Play needs a distinct versionCode per APK) and the fix.
flutter build aar failed on a module with android.newDsl=true: the
library check read android.libraryVariants, which AGP does not create
with the new DSL ("Can't generate AAR on a non Android library
project."), and the plugin wiring read it again.
- Detect a library project with pluginManager.hasPlugin(
"com.android.library").
- Declare singleVariant publishing for each variant, and keep a
declaration that the project's build file already made. AGP's
duplicate-declaration error is matched by its message, because its
class is not public AGP API. This replaces the read of AGP's internal
publishing.singleVariants, which skipped Flutter's declarations for
every variant once the build file declared any, so a module that
declared only release failed every flutter build aar.
- Remove the module-to-plugin assembleAar<Variant> dependsOn. The tool
requests the task by name, so Gradle runs it in every project that
has it and each plugin publishes its own AAR.
- When an Android plugin has no variant with the requested name
(different product flavors), fail with an error that names the plugin,
instead of "Task with name 'assembleAar<Variant>' not found".
- devicelab build_aar_module_test builds with android.newDsl=true and a
module singleVariant("release") declaration.
- Update the migration doc and the website page draft.
The tool requests assembleAar<Variant> without a project path, so Gradle skips projects that lack it. Check each requested task against the module and every Android plugin, so a flavor mismatch in either direction fails instead of reporting success with an incomplete repo. Cover both errors in build_aar_module_test and scope the doc claims about the deleted code.
…AR tasks lazily - checkProjectsHaveRequestedVariants compares the requested task names with aarTaskName() of each project's publishing components, so no task name is parsed back into a variant name. Its doc says when it returns and when it throws. - aarComponents() is the one component filter for task registration and the check. - addAarTask registers its task lazily. The publication is created outside the task's configuration action, where maven-publish may register its tasks. - Link AGP's checkSingleVariantUniqueness source (AGP 9.1.0 tag) and say why the duplicate error is identified. - Keep the task-selector explanation once, in projectsEvaluated. - Docs describe only the behavior.
- checkProjectsHaveRequestedVariants: a requested task that matches no project's variant is left to Gradle's task selector error. - aarComponents: describe what the filter returns. - addAarTask: state the effect of the requested-task guard, and drop the "all" note from the publication comment (the filter is in aarComponents).
…add-to-app-module # Conflicts: # packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt # packages/flutter_tools/gradle/src/main/kotlin/FlutterPluginUtils.kt # packages/flutter_tools/gradle/src/test/kotlin/FlutterPluginTest.kt
Drop the "all" component filter. AGP 7.x and lower created an automatic "all" component only when the project used no publishing DSL; this script declares singleVariant for every variant, and AGP 8.0+ has no automatic components. Describe what AGP creates for singleVariant, and select the requested components in the caller so addAarTask no longer returns early.
Registering only the requested task drops Gradle's candidate list
('Some candidates are: assembleAarDebug, ...') from the error for a
misspelled --flavor. Register a task for each component, as before, and
keep the requested-component filter for publications only.
…ant API errors - DisableNewDslMigration skips projects whose gradle.properties sets android.builtInKotlin=true and whose app does not apply kotlin-android. - RemoveNewDslOptOutMigration removes the Flutter-written newDsl marker pair from those projects only. - legacyVariantApiErrorHandler and kotlinAndroidPluginWithNewDslErrorHandler match errors reproduced with AGP 9.3.1 and KGP 2.4.20. - The deferred component template, its in-repo test app and the integration test fixture use androidComponents.onVariants instead of applicationVariants.
…nt errors, comment on the static source path
…on, plugin scripts in the error and docs, warning with escape hatch - builtInKotlin values keep trailing whitespace, as java.util.Properties does, so 'true ' is not true (matches the Flutter Gradle Plugin). - kotlin-android detection accepts a version suffix and the libs.plugins.jetbrains.kotlin.android alias; apply false is not applied. - The legacy variant API error says the script may belong to a plugin and points at Gradle's '* Where:' line. - The opt-out removal prints a warning that names the bare-flag escape hatch. - Source comments name the Gradle, AGP and KGP versions each pattern matches. - The CRLF test asserts the exact output.
The Flutter tool writes deferred component files under intermediates/flutter/<debug|profile|release>. Keying the directories by variant name missed them for custom build types and flavored variants.
The app and the dynamic feature module declare a free flavor, so the variant name (freeRelease) differs from the Flutter build mode (release). With variant-name keying the component's libapp.so part is missing from the bundle.
… sources The directories are filled by the app's compileFlutterBuild<Variant> task, but nothing ordered the component's merge tasks after it. A task with no actions declares them as outputs, depends on the app's Flutter task, and is passed to addGeneratedSourceDirectory, which also removes the configuration-time .get() on the build directory.
This was referenced Oct 22, 2026
Draft
Member
|
@jesswrd same here not human reviewed yet. |
…clarify failure boxes
…ents, and error handlers Extracts GradleNewDslScanner, expands AndroidProject.newDslBlockingBuildFiles across root/module/deferred-component/plugin Gradle files with zero-plugin package_config.json fallback, deduplicates newDsl migrator checks and single-run scans, migrates deferred component templates and fixtures to configuration-cache-safe androidComponents tasks, syncs Gradle error handlers, and reconciles Android newDsl documentation.
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
PR 10 of 11 in the Flutter Gradle Plugin's AGP 9.1.0 migration (#180137, #166550).
flutter buildstops addingandroid.newDsl=falseto ready built-in Kotlin projects, and removes the marker-prefixedandroid.newDsl=falsepair written earlier by Flutter templates orDisableNewDslMigration. Readiness (isReadyForNewDsl) requiresandroid.builtInKotlin=trueand zeronewDsl-blocking constructs across scanned Gradle build scripts: rootandroid/build.gradle(.kts),android/app/build.gradle(.kts),.android/Flutter/build.gradle(.kts)(for modules), eachDeferredComponentmodule'sbuild.gradle(.kts), and each native Android plugin'sandroid/build.gradle(.kts)(falling back to.dart_tool/package_config.jsonon zero-plugin apps where.flutter-plugins-dependenciesis absent).android.newDsl=true, or appliesorg.jetbrains.kotlin.androidalongsideandroid.newDsl=true, Flutter prints aFlutter Fixbox naming theandroid.newDsl=falseopt-out and the migration path (also proposed standalone in [flutter_tools] Add Gradle error handlers for android.newDsl failures #195742).@DisableCachingByDefaultFlutterDeferredComponentFilestask viaandroidComponents.onVariantsto sync per-build-mode staged Flutter outputs into per-variant generated asset and JNI source directories, compatible withandroid.newDslenabled or disabled and Gradle--configuration-cache.android.builtInKotlin=trueinandroid/gradle.propertieswhere every scanned Gradle build script is free of legacy AGP extension/variant APIs and unguardedkotlin-androiddeclarations. Projects where any scanned script uses legacy AGP extension/variant APIs or unguardedkotlin-androidkeepandroid.newDsl=false. Projects whose legacy AGP API usage lives outside scanned scripts (such asbuildSrc, convention plugins, or included builds) lose Flutter's marker-prefixedandroid.newDsl=falsepair and receive theFlutter Fixbox on failure.android.newDsl=falsepair prints a warning naming the escape hatch. If Gradle later fails on a removed AGP API, aFlutter Fixbox echoes the failing Gradle line, points tocom.android.build.api.dslandandroidComponents.onVariants/beforeVariants, and gives opt-out instructions. To opt out manually, setandroid.newDsl=falseinandroid/gradle.propertieswithout# This newDsl flag was added by the Flutter templateor# This newDsl flag was added automatically by Flutter migratorabove the property.android.builtInKotlin=false), projects keepingandroid.builtInKotlin=false, and built-in Kotlin projects where any scanned app, module, deferred-component, or native Android pluginbuild.gradle(.kts)file blocksnewDsl.gradle_new_dsl_scanner.dart(GradleNewDslScanner),project.dart(AndroidProject.newDslBlockingBuildFilesandappliesKotlinAndroidPlugin),disable_new_dsl_migration.dart(hasBuiltInKotlinEnabledandisReadyForNewDsl),remove_new_dsl_opt_out_migration.dart(RemoveNewDslOptOutMigration),gradle_errors.dart(kotlinAndroidPluginWithNewDslErrorHandlerandlegacyVariantApiErrorHandler, shared with standalone [flutter_tools] Add Gradle error handlers for android.newDsl failures #195742), andFlutterDeferredComponentFilesin the deferred-component scripts. Look hardest at token scanning and guard scoping inGradleNewDslScanner, build-file discovery innewDslBlockingBuildFiles, single-run migrator coordination ingradle.dart, error-handler patterns, and per-variant deferred-component syncing.gradle_new_dsl_scanner_test,project_test,android_project_migration_test,android_gradle_builder_test,gradle_errors_test, deferred-component unit suites), deferred-component integration tests with single and multi-flavor (freeandpaid) builds, four devicelab tasks, and live Gradle 9.5.0 + AGP 9.3.1--configuration-cacheverification.android.builtInKotlin=trueprojects whose scanned scripts passGradleNewDslScannerwhilebuildSrc, convention plugins, or included builds still call AGP APIs removed underandroid.newDsl=true.Agent authored details
Commits
1bdad40474b.35ad2c297admerges master0af64498599.5980fc22918merged PR 9 and updated both added handlers to master'sToolContexthandler signature.fa8ccba28dbinitial migrations, error handlers, deferred components, and tests.aec37a05c15AGP migration documentation updates.ace704f07cereview fixes: widerkotlin-androiddetection, Kotlin DSL test-variant errors, static source path comment.894fd1499f7deferred components: key staged Flutter directories by build mode.b6ed66efd46test: flavored deferred-components build.746bfcec573deferred components: wire directories as generated sources ordered after:app:compileFlutterBuild<Variant>.e7042605e05review fixes:java.util.Propertiesparsing parity, widerkotlin-androidforms, plugin attribution in error box, warning with escape hatch, CRLF coverage.6465a2f54e3merges master6597889f57b(includese8941092c83/ Bump customer_testing to temporarily disable flame.test #194886).c52b48eb8a3gatenewDslopt-out removal on app and plugin build-file scanning; refine failure boxes.acb8cd794e8mergesorigin/master.09e9942c6bdRound 1 refinements: token-based build-file scanner and legacy extension error handler patterns.e8a4e8e124fRound 2 refinements: extractGradleNewDslScanner, expandnewDslBlockingBuildFilesacross root/module/deferred-component/plugin scripts with zero-pluginpackage_config.jsonfallback, deduplicate migrator checks and single-run scans, add configuration-cache-safe per-variantFlutterDeferredComponentFilestask, sync error handlers with [flutter_tools] Add Gradle error handlers for android.newDsl failures #195742, and reconcile AndroidnewDsldocs.Changes
gradle_new_dsl_scanner.dart(added file):GradleNewDslScanner.blocksNewDsltokenizes Groovy.gradleand Kotlin.gradle.ktsscripts (handling line/block comments, single/triple-quoted strings, Groovy slashy/.../vs division, and dollar-slashy$/.../$). Flags legacy AGP extension/variant identifiers (applicationVariants,libraryVariants,testVariants,unitTestVariants,variantFilter,BaseExtension,AppExtension,BaseAppModuleExtension,com.android.build.gradle.internal.*, and non-com.android.build.api.dslreferences toLibraryExtension,TestedExtension,TestExtension), declarativeplugins { ... }kotlin-androidapplications withoutapply false, and imperativekotlin-androidapplications (including multiline Groovyapply, mapapply, and typed string variables) unless enclosed in anif (...)header checking AGP version ornewDsl/builtInKotlinflags.project.dart:AndroidProject.appliesKotlinAndroidPlugin, extracted fromisKotlin, matching imperative and declarativekotlin-androidforms with escaped dots and optionalversion(...).AndroidProject.newDslBlockingBuildFiles, scanninghostAppGradleFile,appGradleFile,.android/Flutter/build.gradle(.kts)whenisModule, eachDeferredComponentmodule'sbuild.gradle(.kts), and native Android plugins (native_build != false) from.flutter-plugins-dependencies, with.dart_tool/package_config.jsonverification for zero-plugin apps. Returnsnullon missing/malformed plugin metadata or unreadable scripts so migrations fail closed and preserveandroid.newDsl=false.disable_new_dsl_migration.dart:kNewDslTemplateMarkerandkNewDslMigratorMarker.hasBuiltInKotlinEnabled: parsesandroid.builtInKotlinentries usingjava.util.Propertieskey/value rules (bare keys without separator evaluate to empty/false; last entry wins; case-insensitivetrue).isReadyForNewDsl: requireshasBuiltInKotlinEnabledand an emptyproject.newDslBlockingBuildFileslist.DisableNewDslMigration: skips ready projects and exposesaddedOptOutsoRemoveNewDslOptOutMigrationskips redundant work in the same build run.remove_new_dsl_opt_out_migration.dart(added file): short-circuits whenDisableNewDslMigrationjust added the opt-out, when nokNewDslTemplateMarker/kNewDslMigratorMarker+android.newDsl=falsepair is present, or whenhasBuiltInKotlinEnabledis false; otherwise checksproject.newDslBlockingBuildFilesonce, removes the marker pair when empty, preserves line endings, and prints a warning naming the bareandroid.newDsl=falseescape hatch.gradle.dart: documents the three-migrator sequence (DisableBuiltInKotlinMigration->DisableNewDslMigration->RemoveNewDslOptOutMigration) and passesdisableNewDslMigrationintoRemoveNewDslOptOutMigration.gradle_errors.dart: addskotlinAndroidPluginWithNewDslErrorHandlerandlegacyVariantApiErrorHandlerahead ofuseNewAgpDslErrorHandler(aligned with standalone PR [flutter_tools] Add Gradle error handlers for android.newDsl failures #195742), distinguishing runtime-confirmedExtensionImplfailures from ambiguous script errors whenandroid.newDsl=falseis already active, and warning against placing Flutter's marker comments above manualandroid.newDsl=falseentries.deferred_component/build.gradle.tmpl,dev/integration_tests/deferred_components_test/android/component1/build.gradle, anddeferred_components_config.dartdefine@DisableCachingByDefaultFlutterDeferredComponentFilesusing injectedFileSystemOperationsto sync per-build-mode staged directories (intermediates/flutter/<mode>/deferred_{assets,libs}) into per-variant output directories (intermediates/flutter/<variant>/deferred_{assets,libs}) wired viavariant.sources.assets?.addGeneratedSourceDirectoryandvariant.sources.jniLibs?.addGeneratedSourceDirectorywith lazydependsOn(project(":app").tasks.matching { it.name == "compileFlutterBuild${variantName}" }).Migrating-Flutter-Gradle-Plugin-to-AGP-public-API.mdandwebsite-page-draft.mdmatch the scanner scope, migrator behavior, error handlers, andFlutterDeferredComponentFilesrecipe.Why templates keep the opt-out
With
android.newDsl=trueandandroid.builtInKotlin=false, the Flutter Gradle Plugin applieskotlin-android, and KGP 2.4.20 fails:"The 'org.jetbrains.kotlin.android' plugin is not compatible with AGP's 9.0 new DSL (android.newDsl=true is enabled by default)."Templates can drop
android.newDsl=falseonly alongside flippingandroid.builtInKotlintotrue.Audit resolution
applicationVariants): replaced in all three deferred-component files withFlutterDeferredComponentFilesandandroidComponents.onVariants. AGP 9.3.1'ssourceSets { applicationVariants.all {} }failure (on source set application variants of type com.android.build.) is also matched bylegacyVariantApiErrorHandler.android_hardware_smoke_testBaseExtension): unaffected becauseGradleNewDslScannerdetectsBaseExtension(andandroid.builtInKotlin=falseremains set), keepingandroid.newDsl=falsein place.Deleted items
sourceSets { applicationVariants.all { ... } }blocks inpackages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl,dev/integration_tests/deferred_components_test/android/component1/build.gradle, andpackages/flutter_tools/test/integration.shard/test_data/deferred_components_config.dart, replaced byFlutterDeferredComponentFiles+androidComponents.onVariantswiring per-variant generateddeferred_assetsanddeferred_libsdirectories.android.newDsl=falsesetup inBasicDeferredComponentsConfig.androidGradleProperties(deferred_components_project.dart), updated toandroid.builtInKotlin=trueplus# This newDsl flag was added by the Flutter templateaboveandroid.newDsl=falsesoRemoveNewDslOptOutMigrationexercises opt-out removal andandroid.newDsl=truebuilds indeferred_components_test.dart.AndroidProject.isKotlin(project.dart), extracted intoAndroidProject.appliesKotlinAndroidPlugin.line.split(' ')[2]) indeferred_components_test.dart, replaced by_builtAabFromStdoutregex extraction.Behavior notes
build.gradle(.kts)scripts reference legacy AGP extension/variant APIs or unguardedkotlin-androidretainandroid.newDsl=falsewithout breaking. When legacy AGP API calls live inbuildSrc, precompiled script plugins, or external Gradle plugins outside scanned scripts,RemoveNewDslOptOutMigrationremoves Flutter's marker pair andlegacyVariantApiErrorHandlerprints theFlutter Fixbox with bareandroid.newDsl=falseopt-out instructions.flutter_toolsstages deferred component outputs by Flutter build mode under<component>/intermediates/flutter/<debug|profile|release>/deferred_{assets,libs}. Multi-flavor builds such as./gradlew bundleFreeRelease bundlePaidRelease --configuration-cacheshare Flutter build moderelease; syncing fromstagedAssetsDir/stagedLibsDir(<mode>) into distinct per-variant@OutputDirectorypaths (<variant.name>) prevents two tasks in one Gradle invocation from claiming identical output directories and stores/reuses Gradle's configuration cache cleanly.isReadyForNewDslre-add the migrator marker pair viaDisableNewDslMigration; releases withRemoveNewDslOptOutMigrationremove the marker pair again when ready, keeping builds working across channel switches."Caution: The ability to opt-out will be removed in AGP 10.0 (mid-2026)."Error text sample
Tests and matrix
flutter_toolsanalyzer (dart analyze --fatal-infos): 0 issues.flutter_toolsunit tests (gradle_new_dsl_scanner_test,project_test,android_project_migration_testfrom bothpackages/flutter_toolsand repo root,android_gradle_builder_test,gradle_errors_test, deferred-component unit suites): all pass; 133-plugin.pub-cachescanner regression check passed.android.builtInKotlin=trueandandroid.newDsl=true: back-to-back./gradlew bundleFreeRelease bundlePaidRelease --configuration-cachestored and reused configuration cache cleanly, packagingcomponent1/assets/flutter_assets/test_assets/asset2.txtandcomponent1/lib/arm64-v8a/libapp.so-2.part.soin both AABs.deferred_components_test,deferred_components_assets_reproduce_test, andandroid_obfuscate_test: pass.build_aar_module_test,build_android_host_app_with_module_aar,build_android_host_app_with_module_source, andmodule_host_with_custom_build_testsucceed.Follow-ups
android_hardware_smoke_testmigrates offBaseExtension.useNewAgpDslErrorHandleronce AGP 10 removesandroid.newDsl=false.FlutterPluginUtils.ktKGP classpath diagnostic wording.Pre-landing checklist (breaking change)
c: API breaklabel.Pre-launch Checklist
///).