leoafarias / fvm

Flutter Version Management: A simple CLI to manage Flutter SDK versions.
https://fvm.app
MIT License
4.72k stars 233 forks source link

[BUG] Installation fails on Flutter 3.24.0, with Windows & choco. #760

Closed ymmtyuhei closed 3 months ago

ymmtyuhei commented 3 months ago

Before creating a bug report please make check the following

Describe the bug Installation fails on Flutter 3.24.0, with Windows & choco. Downgrading to Flutter 3.22.3 and was successful in installing it.

To Reproduce

https://docs.flutter.dev/get-started/install/windows/desktop https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.24.0-stable.zip

  1. extract archive
  PS C:\> Expand-Archive `
      –Path $env:USERPROFILE\Downloads\flutter_windows_3.24.0-stable.zip `
      -Destination $env:USERPROFILE\dev\
  1. add path
 %USERPROFILE%\dev\flutter
  1. install fvm
choco install fvm

The following error should happen

...
AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.3.0/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found.
  final UnmodifiableUint8ListView bytes;
...
Error: AOT compilation failed
Bad state: Generating AOT kernel dill failed!

Expected behavior Successful installation of fvm

Logs Error during fvm installation

Desktop (please complete the following information):

Additional context

Downgrading to Flutter 3.22.3 and was successful in installing it.

Could the following issues be related? https://github.com/dart-lang/sdk/issues/45115 https://github.com/jonataslaw/get_cli/issues/263

https://github.com/leoafarias/fvm/blob/main/pubspec.lock#L828-L835

nsnans commented 3 months ago

look like

image

nsnans commented 3 months ago

@ymmtyuhei

Do you know how to fix it?

nsnans commented 3 months ago

Additional context

Downgrading to Flutter 3.22.3 and was successful in installing it.

Thank you. I can install it now.