Skip to content

Failed to load dynamic library 'rive_native.dll' in test #558

@Zigotote

Description

@Zigotote

Description

I upgraded Rive to 0.14.0-dev.10 to display a RiveWidgetBuilder. The app works but my tests are broken with the message Failed to load dynamic library 'rive_native.dll'.

I used rive 0.13.1 because of another problem in tests, described in this issue : #354.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create an app with a RiveWidgetBuilder
  2. Create a simple test file with
testWidgets("should display page", (tester) async {
    await tester.pumpWidget(MyRiveWidget());
    await tester.pumpAndSettle();
});
  1. Run the test and you should see the message
The following ArgumentError was thrown building MyRiveWidget:
Invalid argument(s): Failed to load dynamic library 'rive_native.dll': error code 126

Source .riv/.rev file

Reproduced with this file : https://rive.app/marketplace/2997-6322-darklight-switch/
But I suppose it can be reproduced with any rive file

Expected behavior

The tests should run

Flutter Versions

Flutter 3.35.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d693b4b9db (4 weeks ago) • 2025-09-16 14:27:41 +0000
Engine • hash feee8ee8fb8b975dd9990f86d3bda11e6e75faf3 (revision c298091351) (28 days ago) • 2025-09-15 14:04:24.000Z
Tools • Dart 3.9.2 • DevTools 2.48.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions