Skip to content

Problem with rive_native's RiveNativePlugin.kt #601

@cscipher

Description

@cscipher

When trying to run the new version of rive on android, facing this issue while debugging:

e: file:///Users/harshsoni/.pub-cache/hosted/pub.dev/rive_native-0.1.1/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:116:1 Class 'RiveRenderTexture' is not abstract and does not implement abstract member:
fun onSurfaceDestroyed(): Unit
e: file:///Users/harshsoni/.pub-cache/hosted/pub.dev/rive_native-0.1.1/android/src/main/kotlin/app/rive/rive_native/RiveNativePlugin.kt:149:5 'onSurfaceCleanup' overrides nothing.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rive_native:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

As per the docs, I did the following:

  1. Flutter clean
  2. Flutter pub cache clean
  3. Flutter pub get
  4. dart run rive_native:setup --verbose --clean --platform android
    but still I'm facing the same issue.

Flutter version:

Flutter 3.27.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d8a9f9a52e (12 months ago) • 2025-01-31 16:07:18 -0500
Engine • revision 82bd5b7209
Tools • Dart 3.6.2 • DevTools 2.40.3

Rive version:

rive: 0.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions