rive-app / rive-app/rive-flutter
Android build fail: Conflicting overloads
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
Description
Hi, recently (likely related to Flutter upgrade), I cannot build rive for Android. I've tried versions:
0.14.0-dev.14
and
0.14.0-dev.13
The build fails with the error:
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:12:10 Conflicting overloads:
fun createRiveRenderer(surface: Surface, width: Int, height: Int): Long
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:18:10 Conflicting overloads:
fun destroyRiveRenderer(renderer: Long): Unit
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:19:10 Conflicting overloads:
fun markDestroyedRiveRenderer(renderer: Long): Unit
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:133:13 Overload resolution ambiguity between candidates:
fun createRiveRenderer(surface: Surface, width: Int, height: Int): Long
fun createRiveRenderer(surface: Surface, width: Int, height: Int): Long
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:157:17 Overload resolution ambiguity between candidates:
fun markDestroyedRiveRenderer(renderer: Long): Unit
fun markDestroyedRiveRenderer(renderer: Long): Unit
e: file:///Users/petrkubes/.pub-cache/hosted/pub.dev/rive_native-0.0.17/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:165:17 Overload resolution ambiguity between candidates:
fun destroyRiveRenderer(renderer: Long): Unit
fun destroyRiveRenderer(renderer: Long): Unit
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':rive_native:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
Flutter (Channel stable, 3.38.1, on macOS 15.6.1 24G90 darwin-arm64, locale en-US) [256ms]
Framework revision b45fa18946 (3 weeks ago), 2025-11-12 22:09:06 -0600
Engine revision b5990e5ccc
Dart version 3.10.0
DevTools version 2.51.1
Any ideas on what am I doing wrong?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt and the :rive_native:compileReleaseKotlin task named in the report. Reproduce the Android release build with Flutter 3.38.1 and the listed rive_native versions, then verify that the conflicting overloads are gone and the build completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, flutter, kotlin
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100