Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- pip
- Visual Studio
- nvidia-smi
- C#
- YOLO
- OpenCV
- 채보
- label
- 컨테이너
- 기타 연주
- Docker
- VS Code
- ubuntu
- Selenium
- 오류
- SSH
- Numpy
- windows forms
- C
- error
- paramiko
- 프로그래머스
- 핑거스타일
- Linux
- pandas
- JSON
- pytorch
- Python
- mysql
- C++
Archives
- Today
- Total
기계는 거짓말하지 않는다
Pub get Because ~ depends on ~ which requires SDK version ~, version solving failed. 오류 본문
IDE/Android Studio
Pub get Because ~ depends on ~ which requires SDK version ~, version solving failed. 오류
KillinTime 2025. 11. 18. 21:23아래와 같이 pubspec.yaml에 dependencies 추가 후, pub get 할 때, SDK 버전 오류가 나는 경우
Resolving dependencies...
The current Dart SDK version is 3.5.4.
Because ... depends on package >=1.0.0 which requires SDK version >=2.0.0 <3.0.0, version solving failed.
You can try one of the following suggestions to make the pubspec resolve:
* Try using the Flutter SDK version: 3.38.1.
* Consider downgrading your constraint on package: flutter pub add package:^0.0.5
Process finished with exit code 1
우선 Android Studio 종료 및 작업 관리자에서 관련된 작업 모두 종료
1. 터미널(cmd 등)에서 Flutter 버전 확인
flutter --version
2. 업그레이드
flutter upgrade
업그레이드 정상 종료 시, 아래와 같은 메시지를 볼 수 있다.
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ...
Expanding downloaded archive with PowerShell...
Building flutter tool...
Running pub upgrade...
Resolving dependencies...
Downloading packages... (5.8s)
Got dependencies.
Flutter 3.38.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b45fa18946 (5 days ago) • 2025-11-12 22:09:06 -0600
Engine • hash 78c3c9557e50ee7c676fa37562558c59efd8406a (revision b5990e5ccc) (5 days ago) • 2025-11-12 21:08:24.000Z
Tools • Dart 3.10.0 • DevTools 2.51.1
업그레이드 후 다시 Android Studio를 실행하여 pub get을 시도해 본다.
Comments