jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
607 stars 178 forks source link

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

Open siyukok opened 3 years ago

siyukok commented 3 years ago

hello,how to resolve this problem?

Can't load Kernel binary: Invalid kernel binary format version. No active package get_cli.

following is my enviroment variables

im using macOS Big Sur 11.2.3

image

w51679579 commented 3 years ago

// (to use this add the following to system PATH: [FlutterSDKInstallDir]\bin\cache\dart-sdk\bin

siyukok commented 3 years ago

// (to use this add the following to system PATH: [FlutterSDKInstallDir]\bin\cache\dart-sdk\bin

thanks for suggestion,but i have added it.

ahmednfwela commented 3 years ago

try doing flutter pub global activate get_cli and try again also make sure your environment path variable has the same order image

maxmblack commented 3 years ago

I solved this with using pub global activate get_cli instead of flutter pub global activate get_cli

T-Man007 commented 3 years ago

i got the same issuse , how to fix it

monzim commented 2 years ago

first Deactivate get_cli run flutter pub global deactivate get_cli then active it again flutter pub global activate get_cli

berkayhh commented 2 years ago
No active package get_cli.
berkay@iMac-von-Berkay doner_production % pub global activate get_cli 
zsh: command not found: pub
berkay@iMac-von-Berkay doner_production % get
No active package get_cli.
berkay@iMac-von-Berkay doner_production % flutter pub global deactivate get_cli
Deactivated package get_cli 1.7.1.
berkay@iMac-von-Berkay doner_production % flutter pub global activate get_cli
Resolving dependencies...
+ _fe_analyzer_shared 32.0.0
+ analyzer 3.0.0
+ ansicolor 2.0.1
+ args 2.3.0
+ async 2.8.2
+ charcode 1.3.1
+ cli_dialog 0.5.0
+ cli_util 0.3.5
+ clock 1.1.0
+ collection 1.15.0
+ convert 3.0.1
+ crypto 3.0.1
+ dart_console 1.0.0
+ dart_style 2.2.1
+ ffi 1.1.2
+ file 6.1.2
+ get_cli 1.7.1
+ glob 2.0.2
+ http 0.13.4
+ http_parser 4.0.0
+ intl 0.17.0
+ matcher 0.12.11
+ meta 1.7.0
+ package_config 2.0.2
+ path 1.8.1
+ process_run 0.12.3+1
+ pub_semver 2.1.0
+ pubspec 2.0.1
+ quiver 3.0.1+1
+ recase 4.0.0
+ source_span 1.8.1
+ stack_trace 1.10.0
+ string_scanner 1.1.0
+ synchronized 3.0.0
+ term_glyph 1.2.0
+ typed_data 1.3.0
+ uri 1.0.0
+ version 2.0.0
+ watcher 1.0.1
+ win32 2.3.1
+ yaml 3.1.0
Downloading path 1.8.1...
Downloading process_run 0.12.3+1...
Installed executables get and getx.
Warning: Executable "get" runs "bin/get.dart", which was not found in get_cli.
Warning: Executable "getx" runs "bin/get.dart", which was not found in get_cli.
Activated get_cli 1.7.1.
berkay@iMac-von-Berkay doner_production % get init
No active package get_cli.
berkay@iMac-von-Berkay doner_production % 

Still not going...

JiboStore commented 2 years ago

I encountered this issue suddenly whereby it was working well before, I was able to resolve it by running these commands in order:

  1. flutter downgrade => downgraded flutter from v2.8.1 to v2.5.3
  2. flutter doctor
  3. flutter pub global deactivate get_cli
  4. flutter pub global activate get_cli
iLoveNintendo commented 2 years ago

suport flutter 2.8.0+ plz

meetpilou commented 2 years ago

The solution works great here : https://github.com/jonataslaw/get_cli/issues/149