Search

pub get failed (1; Because shared_data_app requires SDK version >=3.2.3 <4.0.0, version solving failed.)

pub get failed (1; Because shared_data_app requires SDK version >=3.2.3 <4.0.0, version solving failed.)

The current Dart SDK version is 2.18.2.
Because shared_data_app requires SDK version >=3.2.3 <4.0.0, version solving failed.

์›์ธ

shared_data_app ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „์ด, SDK version >=3.2.3 <4.0.0 ๋ฒ„์ „์„ ์š”๊ตฌํ•˜๊ณ  ์žˆ๋Š”๋ฐ, ํ˜„์žฌ Dart ๋ฒ„์ „์€ 2.18.2. ์ด๋ผ์„œ ์š”๊ตฌ์‚ฌํ•ญ์˜ ๋ฒ„์ „์„ ์ถฉ์กฑํ•˜์ง€ ๋ชปํ•œ๋‹ค.

ํ•ด๊ฒฐ

Dart SDK 3.2.3 ์ด์ƒ์˜ ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•œ๋‹ค.
ํ”„๋กœ์ ํŠธ์˜ Dart ๋ฒ„์ „ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜๊ธฐ

Dart SDK ์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜๊ธฐ

1.
Chocolatey ์„ค์น˜
2.
choco ๋ช…๋ น์–ด๋กœ Dart SDK ์—…๊ทธ๋ ˆ์ด๋“œ

Chocolatey ์„ค์น˜

1.
PowerShell ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰
2.
์ •์ฑ… ํ™•์ธ
3.
์ •์ฑ… ์„ค์ •
4.
Chocolatey ์„ค์น˜ ๋ช…๋ น์–ด ์ž…๋ ฅ

PowerShell ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰

์ •์ฑ… ํ™•์ธ

Get-ExecutionPolicy
PowerShell
๋ณต์‚ฌ

์ •์ฑ… ์„ค์ •

Set-ExecutionPolicy AllSigned
PowerShell
๋ณต์‚ฌ

Chocolatey ์„ค์น˜ ๋ช…๋ น์–ด ์ž…๋ ฅ

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
PowerShell
๋ณต์‚ฌ

choco ๋ช…๋ น์–ด๋กœ Dart SDK ์„ค์น˜

CMD(๋ช…๋ น ํ”„๋กฌํ”„ํŠธ) ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰
choco install dart-sdk
Shell
๋ณต์‚ฌ

choco ๋ช…๋ น์–ด๋กœ Dart SDK ์—…๊ทธ๋ ˆ์ด๋“œ

CMD(๋ช…๋ น ํ”„๋กฌํ”„ํŠธ) ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰
choco upgrade dart-sdk
Shell
๋ณต์‚ฌ

ํ”„๋กœ์ ํŠธ์˜ Dart ๋ฒ„์ „ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•˜๊ธฐ

flutter upgrade dart-app
Shell
๋ณต์‚ฌ

ํ”Œ๋Ÿฌํ„ฐ ์•ฑ์„ ๋‹ค์‹œ ๋นŒ๋“œํ•ด๋ณด์ž

flutter pub get
Shell
๋ณต์‚ฌ
์—๋Ÿฌ๊ฐ€ ์—†์–ด์กŒ๋‹ค.