Skip to content

[package_info_plus] Kotlin Gradle Plugin (KGP) causes Flutter built-in Kotlin warning #3830

Description

@stefanBid

Description

package_info_plus v10.1.0 still applies id("kotlin-android") in its
Android build configuration.

Starting from Flutter 3.41+, this triggers the following warning at build time:

WARNING: Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP):
package_info_plus
Future versions of Flutter will fail to build if your app uses plugins that apply KGP.

Expected behavior

The plugin should migrate to Flutter's Built-in Kotlin support by removing the
explicit id("kotlin-android") plugin application and relying on Flutter's
dev.flutter.flutter-gradle-plugin to handle Kotlin internally.

References

Environment

  • Flutter: 3.44.0
  • package_info_plus: 10.1.0
  • Dart: 3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions