Flutterando / slidy

CLI package manager and template for Flutter
https://pub.dev/packages/slidy
Apache License 2.0
803 stars 101 forks source link

Error after flutter upgrade #191

Closed BerkSpar closed 4 years ago

BerkSpar commented 4 years ago

I upgraded to the last version of Flutter and Slidy doesn't work after that. When I try to use any command on Slidy it returns:

Can't load Kernel binary: Invalid kernel binary format version.

My Flutter version:

[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [versão 10.0.18362.959], locale pt-BR)
    • Flutter version 1.20.1 at C:\src\flutter
    • Framework revision 2ae34518b8 (26 hours ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

Note: I also upgraded Dart SDK. Note 2: I also reinstaled Slidy.

andrewbiller commented 4 years ago

I removed flutter\bin\cache

Upgraded the standalone dart installation to 2.90 (stable)

Then, I ran flutter doctor again.

The error has gone, but when I run slidy --version it closes the window (prompt or terminal tab at android studio)

Slidy version: 2.1.2+2

GabrielCR99 commented 4 years ago

In Windows, what I did to fix this was, open the Run command window with Windows + R key, then type %appdata%. There, assuming you're in the Roaming folder, go to Pub\Cache\hosted\pub.dartlang.org, there, you'll find all of the cached slidy packages. I deleted them all (had about 3, with different version installed). Then, installed slidy. When I ran slidy --version, it showed up normally without closing any prompt/terminal tab. Hope it works for you all!

toshiossada commented 4 years ago

@GabrielCR99 doesnt works to me

andrewbiller commented 4 years ago

The problem is the slidy.bat inside Pub\Cache\bin

BerkSpar commented 4 years ago

I fixed the problem doing these steps:

Versions:

C:\Windows\System32>slidy --version

███████╗██╗     ██╗██████╗ ██╗   ██╗     ██████╗██╗     ██╗
██╔════╝██║     ██║██╔══██╗╚██╗ ██╔╝    ██╔════╝██║     ██║
███████╗██║     ██║██║  ██║ ╚████╔╝     ██║     ██║     ██║
╚════██║██║     ██║██║  ██║  ╚██╔╝      ██║     ██║     ██║
███████║███████╗██║██████╔╝   ██║       ╚██████╗███████╗██║
╚══════╝╚══════╝╚═╝╚═════╝    ╚═╝        ╚═════╝╚══════╝╚═╝

CLI package manager and template for Flutter

Slidy version: 2.1.2+2

C:\Windows\System32>pub --version
Pub 2.8.4

C:\Windows\System32>flutter --version
Flutter 1.20.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2ae34518b8 (7 days ago) • 2020-08-05 19:53:19 -0700
Engine • revision c8e3b94853
Tools • Dart 2.9.0

note: Inside path enviroment put dart-sdk on the top.