Skip to content

Flutter Built-in Kotlin Migration Required #45

@Hackermanteamofficial

Description

@Hackermanteamofficial

When building a Flutter project with recent Android Gradle Plugin (AGP 9.0+) and Flutter versions that support Built-in Kotlin, this plugin still applies the deprecated Kotlin Gradle Plugin ("org.jetbrains.kotlin.android").

During the build process, Flutter reports the following warning:

WARNING: Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): flutter_localization

Future versions of Flutter will fail to build if your app uses plugins that apply KGP.

Please migrate your plugin to Built-in Kotlin.

Additional warnings include:

Deprecated 'org.jetbrains.kotlin.android' plugin usage

The 'org.jetbrains.kotlin.android' plugin is no longer required for Kotlin support since AGP 9.0.

Expected Behavior

The plugin should be migrated to Android Gradle Plugin's Built-in Kotlin support and no longer apply:

org.jetbrains.kotlin.android

This will ensure compatibility with current and future Flutter and AGP releases.

Environment

  • Flutter: Latest stable version
  • Android Gradle Plugin (AGP): 9.0+
  • Gradle: Latest supported version
  • Kotlin: Built-in Kotlin enabled by Flutter migration
  • Platform: Android

Impact

The plugin currently builds successfully, but Flutter warns that future versions may fail to build if plugins continue applying the Kotlin Gradle Plugin manually.

References

Thank you for maintaining this package.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions