Skip to content

[rive_native] Could not launch on Windows #471

@damywise

Description

@damywise

Hey there :)

I am posting this issue here since the repo for rive_native is not public yet.

I could not launch my app (Windows) with rive_native: 0.0.1-dev.7. Here are the logs.

The project is an --empty project.

Logs

$ flutter clean
Deleting build...                                                   11ms
Deleting .dart_tool...                                               1ms
Deleting ephemeral...                                                0ms
Deleting ephemeral...                                                1ms
Deleting .flutter-plugins-dependencies...                            1ms
Deleting .flutter-plugins...                                         0ms

$ dart run rive_native:setup --verbose --clean --platform windows
[rive_native]   Starting Rive Native Setup...

[rive_native]   Building rive_native with assumed project root in:
[rive_native]   E:\GitHubE\stretch_buddy\

[rive_native]   Using package:rive_native from C:\Users\AAAS\AppData\Local\Pub\Cache\hosted\pub.dev\rive_native-0.0.1-dev.7
[rive_native]   Cleaning rive_native windows
[rive_native]   Initializing Rive Native for TargetPlatform.windows. This may take some time the first time it is run.
[rive_native]   Downloading "windows" libraries for version "0.0.1-dev.7+1"
[rive_native]   URL: https://rive-flutter-artifacts.rive.app/rive_native_versions/0.0.1-dev.7%2B1/rive_native_artifacts_windows.zip

$ flutter build windows
Resolving dependencies... 
Downloading packages... 
  async 2.12.0 (2.13.0 available)
  fake_async 1.3.2 (1.3.3 available)
  ffi 2.1.3 (2.1.4 available)
  leak_tracker 10.0.8 (10.0.9 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  vm_service 14.3.1 (15.0.0 available)
Got dependencies!
6 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

CMake Warning at flutter/ephemeral/.plugin_symlinks/rive_native/windows/CMakeLists.txt:20 (message):
  rive_native: Could not infer app root — '/build/rive_native' not found
  in:


The current Dart SDK version is 3.4.1.

Because stretch_buddy requires SDK version ^3.6.2, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Try using the Dart SDK version: 3.7.2. See https://dart.dev/get-dart.
CMake Error at flutter/ephemeral/.plugin_symlinks/rive_native/windows/CMakeLists.txt:33 (message):
  rive_native: Failed to run rive_native setup command


Building Windows application...                                     8.0s
Unable to generate build files

I don't understand why it says the dart sdk version thing. The project works without rive_native and the dart version is 3.6+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions