Skip to content

[share_plus] Kotlin Gradle Plugin (KGP) causes Flutter built-in Kotlin warning #3831

@stefanBid

Description

@stefanBid

Description

share_plus v13.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):
share_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
  • share_plus: 13.1.0
  • Dart: 3.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions