GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Flutter Docs
  • Learn
  • AI
  • Reference
  • search
  • Flutter
  • FlutterBlog
  • Dart
  • DartPad
  • pub.dev
  • Install Flutter
  • Learn Flutter
  • paletteIntroduction
  • Overview

This view

  • Original page
  • New address

GeezerVison is showing docs.flutter.dev — Migrating Flutter Android projects to built-in Kotlin

vertical_align_top Migrating Flutter Android projects to built-in Kotlin

Help improve Flutter! Take the Flutter Q4 Developer survey.

feedback Important

These breaking change docs are accurate, as of the release under which they are published. Over time, the workarounds described here might become inaccurate. We don't, in general, keep these breaking change docs up to date as of each release.

The breaking change index file lists the docs created for each release.

warningWarning

This guide only applies to apps and plugins that already use the Kotlin Gradle Plugin (KGP). If your project doesn't currently apply KGP, don't migrate to built-in Kotlin.

Summary

#

To build a Flutter app for Android, the Android Gradle Plugin (AGP) must be used. To use AGP 9 and later, the following migrations are required.

First, built-in Kotlin is the default in AGP 9 and later. Apps that use the kotlin-android plugin, also known as the Kotlin Gradle Plugin (KGP), fail to build without migration (Issue #181383). Flutter 3.44 added temporary support for the legacy KGP in AGP 9 and later with android.builtInKotlin=false (Issue #183909). This allows app and plugin developers to build their projects while migrating off KGP. Flutter 3.47 added support for enabling built-in Kotlin (android.builtInKotlin=true) once an app and all its plugins have migrated.

Second, AGP 9 and later only use the new AGP DSL interfaces. This means any old DSL types will not be recognized. The Flutter team is working on migrating old DSL types to use the new DSL: Issue #180137. In the meantime, the Flutter team has configured the AGP DSL to be compatible with the legacy DSL types (Issue #184838). This ensures app and plugin developers can safely upgrade to AGP 9 and later.

To ensure compatibility, manually migrate all apps and plugins from the legacy KGP to built-in Kotlin. Flutter plans to remove support for applying KGP in a future version (Issue #184837).

To learn more about Android Gradle Plugin, see the Android Gradle Plugin docs.

Migrate

#

For app developers: Follow the app developer migration guide.

For plugin authors: Follow the plugin author migration guide.

Next steps

#
  • Remove support for KGP: In a future version of Flutter, support for applying KGP will be removed (Issue #184837). Migrate apps, plugins, and host apps to keep them building.

  • Remove the DSL Gradle property: Once the Flutter team completes the migration to the new AGP DSL, it will remove support for the old DSL (Issue #184839).

Timeline

#

Landed in version: 3.44.0-0.1.pre
In stable release: 3.44

References

#

Relevant issues:

  • Issue #180137: Migrate from old to new AGP DSL
  • Issue #181383: Flutter plugins should support AGP 9.0.0
  • Issue #183909: Add support for KGP in AGP+
  • Issue #184837: Remove support for KGP
  • Issue #184838: Disable new AGP DSL flag by default
  • Issue #184839: Remove support for old AGP DSL types

The Gradle build files in your app vary based on the Flutter version used when your app was created. Consider staying up to date with the latest version of the build files by periodically running flutter upgrade in your app's directory.

Was this page's content helpful?

Unless stated otherwise, the documentation on this site reflects Flutter 3.50. Page last updated on 2026-08-20. View source or report an issue.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.