rive-app / rive-app/rive-flutter

Migrate rive_native to built-in Kotlin

Open
#639 3 comments 6 reactions 1 assignee View on GitHub

@HayesGordon is already working on this.

Since Jun 1, 2026.

Dominant language
Dart
Stars
1.5k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

I am using rive_native 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: https://github.com/flutter/flutter/issues/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:

  • rive_native latest on pub.dev is 0.1.7.
  • 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.