# Migrating A Flutter Project to Built In Kotlin

DevFeed: [Migrating A Flutter Project to Built In Kotlin](<https://devfeed.tech/articles/migrating-a-flutter-project-to-built-in-kotlin-105647.md>)

Original publisher: [Read original article](<https://medium.com/flutter-community/migrating-a-flutter-project-to-built-in-kotlin-e0e41f2ea11a?source=rss----86fb29d7cc6a---4>)

Author: tomerpacific

Published: 2026-10-28T15:42:03Z

Content type: tutorial

Language: en

Sources: [Flutter Community](<https://devfeed.tech/sources/flutter-community-medium.md>)

Topics: [Flutter](<https://devfeed.tech/topics/flutter.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Android](<https://devfeed.tech/topics/android.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [built-in](<https://devfeed.tech/tags/built-in.md>), [dart](<https://devfeed.tech/tags/dart.md>), [flutter](<https://devfeed.tech/tags/flutter.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

## AI overview

Migrating a Flutter project to built-in Kotlin requires Flutter 3.44 or later and, for AGP 9 support, updates to the Android build configuration. The article says to use Flutter's stable channel, upgrade Flutter, set the minimum Flutter version in pubspec.yaml, remove the applied Kotlin Android plugin from the app build file, replace kotlinOptions with the Kotlin compilerOptions block, and update gradle.properties. Android Studio Otter 3 is identified as the first version supporting AGP 9. Dependencies must also support built-in Kotlin; otherwise, the author recommends replacing them or delaying migration. A pure Dart script can inspect a project and propose edits, but changes require approval, manual steps remain, and dependency blockers may persist. Its sample report also cautions that duplicate settings.gradle files can make findings misleading.

## Source excerpt

🙌 TL;DR I created a dart script to automatically migrate your Flutter project with ease. You can find it at the bottom of this article. If your application or plugin supports Flutter version >= 3.44, then you might consider migrating it to use Built In Kotlin support. This is needed in order to support Android Gradle Plugin (AGP) versions >= 9. If you are not supporting Flutter version >= 3.44 or if your project is not currently using AGP >= 9, you don't need to do this right now, but you might want to consider it. I have undergone this migration process with one of my applications, and would like to share the process I had to go through, so you may have an easier going though it. ✋ If you have a Flutter plugin that is a pure Dart plugin (meaning no native Android code), then you don't need to do anything regarding the migration and you can leave it as is.Setting up Flutter >= 3.44 The first thing you need to do in order to migrate your application/plugin is to make sure you are on a Flutter version that supports it. That means, to upgrade your local Flutter version to at least 3.44. Before you upgrade the version, make sure you are on the stable channel in Flutter. You can do so by opening up a terminal and typing: flutter channel If the output shows you that you are on the stable channel, you can proceed to upgrade by typing: flutter upgrade This will upgrade your Flutter version to the latest one in the stable channel. After doing this, we need to also declare in our pubspec.yaml file what our minimum supported Flutter version is: environment: sdk: ^3.2.0 flutter: '>=3.44.0'Upgrading AGP >= 9 (the manual approach) To upgrade the Android Gradle Plugin version to be >= 9, you need to open the android folder of your Flutter project. Make sure you have at least Android Studio Otter 3 since that is the first version that supports AGP 9. Once you have opened the project, you can use the AGP Upgrade Assistant under the Tools menu option. Now, there are several changes you need