Skip to content

Migrate objectbox_flutter_libs to built-in Kotlin #812

Description

@pamafe1976

I am using objectbox_flutter_libs in my Flutter app.

Starting with Android Gradle Plugin (AGP) 9.0, support for applying the Kotlin Gradle Plugin (KGP) has been removed. Because this plugin applies KGP, it causes a compilation error that prevents my app from building. Here is an example of the error: flutter/flutter#181383

Flutter has temporarily added support to allow KGP while apps and plugins migrate to AGP 9.0+, but this support will be removed in a future version of Flutter.

Please migrate this plugin to use built-in Kotlin to ensure your plugin users can successfully build their apps in future versions of Flutter.

Evidence from the current published plugin version:

  • objectbox_flutter_libs latest on pub.dev is 5.3.2.
  • The package still includes android/build.gradle.
  • That file still declares/applies KGP explicitly:
    • classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    • apply plugin: 'kotlin-android'

Flutter warning shown during build:

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

Relevant Flutter docs:

Thanks.

Activity

  1. greenrobot-team commented on Jun 1, 2026

    @greenrobot-team
    Member

    Sorry, I misread. This is about the Flutter plugins, not the examples.

    For our reference, this is internal issue objectbox-dart#186

  2. marcelofd777-prog commented on Aug 2, 2026

    @marcelofd777-prog

    I think this should be labeled as a bug not an "enhancement". If you do nothing it will cease to function

  3. greenrobot-team commented on Aug 10, 2026

    @greenrobot-team
    Member

    I think this should be labeled as a bug not an "enhancement". If you do nothing it will cease to function

    It would always be possible to use an older, compatible Flutter SDK release.

    Regardless, this is already in progress and should be resolved with the next release.

  4. added this to the 6.0.0 milestone on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions