jonataslaw / get_cli

Official Getx CLI
Apache License 2.0
578 stars 164 forks source link

dart migrate can not find in dart 3.0.1, sdk: '>=3.0.1 <4.0.0' #226

Open ethanwinters-onii opened 1 year ago

ethanwinters-onii commented 1 year ago

error_unexpected ShellException(dart migrate --apply-changes --skip-import-check,

[✓] Flutter (Channel stable, 3.10.2, on macOS 13.2.1 22D68 darwin-arm64, locale en-VN) • Flutter version 3.10.2 on channel stable at /Users/ethanwinters/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 9cd3d0d9ff (28 hours ago), 2023-05-23 20:57:28 -0700 • Engine revision 90fa3ae28f • Dart version 3.0.2 • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/ethanwinters/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E222b • CocoaPods version 1.11.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.75.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.64.0

[✓] Connected device (3 available) • iPhone 14 Plus (mobile) • A4A5616F-5C38-487C-A17F-CC3A85E103DD • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 13.2.1 22D68 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.126

abdorizak commented 1 year ago

@jonataslaw @CpdnCristiano please take a look this issue i have same issue when i try to generate a flutter project using get_cli it's not generating

image
andialrizki commented 1 year ago

follow this for fixed https://github.com/jonataslaw/get_cli/issues/224#issuecomment-1554643493

knottx commented 11 months ago

@ethanwinters-onii try this

  1. dart pub global deactivate get_cli 
  2. dart pub global activate -s git https://github.com/knottx/get_cli.git
Vladeouz commented 10 months ago

@ethanwinters-onii try this

dart pub global deactivate get_cli 
dart pub global activate -s git https://github.com/knottx/get_cli.git

Thanks, it works !