rive-app / rive-app/rive-flutter
Failed to load dynamic library 'rive_native.dll' in test
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
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 : https://github.com/rive-app/rive-flutter/issues/354.
Steps To Reproduce
Steps to reproduce the behavior:
- Create an app with a RiveWidgetBuilder
- Create a simple test file with
testWidgets("should display page", (tester) async {
await tester.pumpWidget(MyRiveWidget());
await tester.pumpAndSettle();
});
- 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
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 by reproducing the simple widget test using RiveWidgetBuilder and the linked .riv asset, then trace where rive_native.dll is loaded during the test. Done means the test runs successfully with rive 0.14.0-dev.10 without the dynamic-library error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100