flutter doctor -v
[✓] Flutter (Channel stable, 3.3.10, on macOS 13.5.1 22G90 darwin-x64, locale zh-Hans-CN)
• Flutter version 3.3.10 on channel stable at /Users/elvin/development/language/flutter3.3.10
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (9 months ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/USER/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (version 2022.3)
• Android Studio at /Applications/Develop/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
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at /Applications/Develop/IntelliJ IDEA.app
• 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
[✓] VS Code (version 1.81.1)
• VS Code at /Applications/Develop/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
How to reproduce?
flutter pub get report error:
Because flutter_image_compress_web >=0.1.1 depends on flutter_web_plugins from sdk which depends on js 0.6.4, flutter_image_compress_web >=0.1.1 requires js 0.6.4.
And because flutter_image_compress_web >=0.1.1 depends on js ^0.6.5, flutter_image_compress_web >=0.1.1 is forbidden.
So, because xxxx depends on flutter_image_compress ^2.0.4 which depends on flutter_image_compress_web ^0.1.3+1, version solving failed.
Version
2.0.4
Platforms
dart
Device Model
any
flutter info
How to reproduce?
flutter pub get report error:
Because flutter_image_compress_web >=0.1.1 depends on flutter_web_plugins from sdk which depends on js 0.6.4, flutter_image_compress_web >=0.1.1 requires js 0.6.4. And because flutter_image_compress_web >=0.1.1 depends on js ^0.6.5, flutter_image_compress_web >=0.1.1 is forbidden.
So, because xxxx depends on flutter_image_compress ^2.0.4 which depends on flutter_image_compress_web ^0.1.3+1, version solving failed.
Logs
No response
Example code (optional)
No response
Contact
No response