Skip to content

Can not build an Android app using Flutter's rive_native #475

@Vvindo

Description

@Vvindo

Hello!
Our app product uses flutter's rive_native (0.0.1-dev.8).

When running this command on Windows, we encounter an error:

dart run rive_native:
setup --verbose --clean --build --platform android

(See error screenshot below ↓). This causes the built Android APK to get stuck on the "launch page" upon installation and launch.

Image


Similarly, when building the Android app on macOS, we get a different error (error message below):

<asynchronous suspension>
#1      RiveSetup._buildBinaries (file:///Users/chenxuan/.pub-cache/hosted/pub.dev/rive_native-0.0.1-dev.8/bin/setup.dart:284:7)
<asynchronous suspension>
#2      RiveSetup.init (file:///Users/chenxuan/.pub-cache/hosted/pub.dev/rive_native-0.0.1-dev.8/bin/setup.dart:173:9)
<asynchronous suspension>
#3      main (file:///Users/chenxuan/.pub-cache/hosted/pub.dev/rive_native-0.0.1-dev.8/bin/setup.dart:104:5)
<asynchronous suspension>

(base) chenxuan@chenxuandeMacBook-Pro my_test_app %

This results in the Android APK built on macOS displaying the following error on the canvas upon launch:

Image

Could there be something I'm missing?

I can successfully build iOS apps using rive_native, but Android builds keep failing with these errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions