๋ฐ˜์‘ํ˜•

1. ์œˆ๋„์šฐ ์šฉ Android Studio ์„ค์น˜ํ•˜๊ธฐ

Android Studio๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๊ธฐ ์œ„ํ•ด ์•„๋ž˜ ์‚ฌ์ดํŠธ์— ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค.

https://developer.android.com/studio

 

Download Android Studio & App Tools - Android Developers

Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.

developer.android.com

์œ„ ํ™ˆํŽ˜์ด์ง€์— ์ ‘์†ํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด Download Android Studio Giraffe ๋ฒ„ํŠผ์ด ๋ณด์ž…๋‹ˆ๋‹ค. ํด๋ฆญํ•˜๋ฉด ๋ผ์ด์„ ์Šค ๋™์˜ ํ™”๋ฉด์ด ๋ณด์ด๊ณ , ๋™์˜ํ•˜๋ฉด ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค.

Android-Studio-ํ™ˆํŽ˜์ด์ง€
Android Studio ํ™ˆํŽ˜์ด์ง€

์„ค์น˜ ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜์—ฌ ์„ค์น˜ ๋งˆ๋ฒ•์‚ฌ๋ฅผ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์„ค์น˜ ๊ณผ์ • ์ค‘ 'Android Virtual Device'๋Š” ์„ ํƒํ•˜์—ฌ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ ์™ธ, ๋ณ„๋‹ค๋ฅธ ์„ค์ • ์—†์ด Next๋งŒ ํด๋ฆญํ•˜๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋ฉ๋‹ˆ๋‹ค.

์„ค์น˜-๊ณผ์ •
์„ค์น˜ ๊ณผ์ •

์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด, ์•„๋ž˜์™€ ๊ฐ™์ด Android Studio๊ฐ€ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.

Android-Studio-์‹คํ–‰-๋ชจ์Šต
Android Studio ์‹คํ–‰ ๋ชจ์Šต

2. Flutter SDK ์„ค์น˜ํ•˜๊ธฐ

์ด์ œ Android Studio์—์„œ ์‚ฌ์šฉํ•  Flutter SDK๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Flutter ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์— ์ ‘์†ํ•ฉ๋‹ˆ๋‹ค.

https://docs.flutter.dev/release/archive?tab=windows

 

Flutter SDK archive

All current Flutter SDK releases: stable, beta, and master.

docs.flutter.dev

Stable channel (Windows) ์ค‘ ์ตœ์‹  ๋ฒ„์ „ ๋˜๋Š” ์›ํ•˜๋Š” ๋ฒ„์ „์˜ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค.

Flutter-SDK-๋‹ค์šด๋กœ๋“œ-ํ™”๋ฉด
Flutter SDK ๋‹ค์šด๋กœ๋“œ ํ™”๋ฉด

๋‹ค์šด๋กœ๋“œํ•œ ํŒŒ์ผ์€ ์„ค์น˜ ํŒŒ์ผ์ด ์•„๋‹Œ ์••์ถ• ํŒŒ์ผ(*.zip)์ž…๋‹ˆ๋‹ค. ์••์ถ•์„ ํ’€๊ณ , C:\flutter ๋˜๋Š” D:\flutter๊ณผ ๊ฐ™์ด ์›ํ•˜๋Š” ๊ฒฝ๋กœ์— ์˜ฎ๊ฒจ ๋†“์Šต๋‹ˆ๋‹ค.

flutter-์••์ถ•์„-ํ‘ผ-๋ชจ์Šต
flutter ์••์ถ•์„ ํ‘ผ ๋ชจ์Šต

๊ทธ๋ฆฌ๊ณ  ์œˆ๋„์šฐ ํ™˜๊ฒฝ ๋ณ€์ˆ˜์— flutter\bin ํด๋” ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ €๋Š” C:\flutter\bin ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

ํ™˜๊ฒฝ-๋ณ€์ˆ˜-์ถ”๊ฐ€ํ•˜๊ธฐ
ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์ถ”๊ฐ€ํ•˜๊ธฐ

๊ทธ๋ฆฌ๊ณ  ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

๋ช…๋ น-ํ”„๋กฌํ”„ํŠธ-์‹คํ–‰ํ•˜๊ธฐ
๋ช…๋ น ํ”„๋กฌํ”„ํŠธ ์‹คํ–‰ํ•˜๊ธฐ

์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

flutter doctor

๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด !, X, V๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

flutter-doctor๋กœ-์ ๊ฒ€ํ•œ-๋ชจ์Šต
flutter doctor๋กœ ์ ๊ฒ€ํ•œ ๋ชจ์Šต

! Some Android licenses not accepted

์ด ๋ฉ”์‹œ์ง€๋Š” ๋ง ๊ทธ๋Œ€๋กœ, ๋ผ์ด์„ ์Šค ์ผ๋ถ€๊ฐ€ ๋™์˜๋˜์ง€ ์•Š์•˜๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค. ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ์—์„œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

flutter doctor --android-licenses

๋งŒ์•ฝ, ๋ช…๋ น์–ด ์ž…๋ ฅ ์‹œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด Android SDK Command-line Tools๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

Command-line-Tools-์„ค์น˜ํ•˜๊ธฐ
Command-line Tools ์„ค์น˜ํ•˜๊ธฐ

๋‹ค์‹œ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ์—์„œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๊ณ , ํ™”๋ฉด์— ๋™์˜ ํ•˜๊ฒ ๋Š๋ƒ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋  ๋•Œ๋งˆ๋‹ค 'y' ํ‚ค๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๊ฐ„๋‹จํ•˜๊ฒŒ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

X Flutter/Dart plugin not installed

ํ•ด๋‹น ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋Š” Android Studio์— Flutter plugin์ด ์„ค์น˜๋˜์ง€ ์•Š์•˜๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด Android Studio์˜ Plugins ๋ฉ”๋‰ด์—์„œ Dart์™€ Flutter ํ•ญ๋ชฉ์„ ์„ ํƒํ•˜์—ฌ ์„ค์น˜ํ•˜๋ฉด ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

Dart์™€-Flutter๋ฅผ-์„ค์น˜ํ•œ-๋ชจ์Šต
Dart์™€ Flutter๋ฅผ ์„ค์น˜ํ•œ ๋ชจ์Šต

! No devices available

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋””๋ฐ”์ด์Šค๊ฐ€ ์—†๋‹ค๋Š” ๋ฉ”์‹œ์ง€์ž…๋‹ˆ๋‹ค. ์•ฑ ๊ฐœ๋ฐœ ์‹œ ๋ฌผ๋ฆฌ์ ์œผ๋กœ ์—ฐ๊ฒฐ๋œ ์Šค๋งˆํŠธํฐ ๋˜๋Š” ๊ฐ€์ƒ ์žฅ์น˜์—์„œ ์‹คํ–‰ํ•˜์—ฌ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ์š”. ์ฒ˜์Œ Android Studio๋ฅผ ์„ค์น˜ํ•˜๋ฉด ์žฅ์น˜๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ๋ฉ”์‹œ์ง€๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

๊ฐ€์ƒ ์žฅ์น˜๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.

[Flutter] ๊ฐ€์ƒ ๋””๋ฐ”์ด์Šค(Virtual device) ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•

 

[Flutter] ๊ฐ€์ƒ ๋””๋ฐ”์ด์Šค(Virtual device) ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•

Android Virtual Device(AVD) ๊ด€๋ฆฌํ•˜๊ธฐ Android Studio์—์„œ๋Š” ๋ฌผ๋ฆฌ์ ์œผ๋กœ ์—ฐ๊ฒฐ๋œ ์Šค๋งˆํŠธ ํฐ์—์„œ ์•ฑ์„ ๊ฐœ๋ฐœํ•  ์ˆ˜๋„ ์žˆ์ง€๋งŒ, ํŽธ๋ฆฌํ•˜๊ฒŒ ๊ฐ€์ƒ ๋””๋ฐ”์ด์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ์‹คํ–‰ํ•˜๊ณ  ๋””๋ฒ„๊น…์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๊ฐ€์ƒ ๋””๋ฐ”์ด

luckygg.tistory.com

์ด์ œ ๋ชจ๋“  ์กฐ์น˜๋ฅผ ๋‹ค ์ทจํ•œ ํ›„ ๋‹ค์‹œ ํ•œ๋ฒˆ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.

flutter doctor

์•„๋ž˜์™€ ๊ฐ™์ด V ํ‘œ์‹œ๋˜๊ณ , No issues found ๋ฉ”์‹œ์ง€๊ฐ€ ๋ณด์ธ๋‹ค๋ฉด flutter๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ ์ค€๋น„๊ฐ€ ๋๋‚œ ๊ฒ๋‹ˆ๋‹ค.

๋ชจ๋“ -์ค€๋น„๊ฐ€-์™„๋ฃŒ๋œ-๋ชจ์Šต
๋ชจ๋“  ์ค€๋น„๊ฐ€ ์™„๋ฃŒ๋œ ๋ชจ์Šต

3. Flutter Project ์ƒ์„ฑํ•˜๊ธฐ

Welcome ํ™”๋ฉด์—์„œ New Flutter Project๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

Flutter-Project-์ƒ์„ฑํ•˜๊ธฐ
Flutter Project ์ƒ์„ฑํ•˜๊ธฐ

๊ทธ๋ฆฌ๊ณ  ์•„๋ž˜ ํ™”๋ฉด๊ณผ ๊ฐ™์ด Flutter SDK path๋ž€์— ์ฒ˜์Œ ์˜ฎ๊ฒจ๋†จ๋˜ flutter ๊ฒฝ๋กœ๋กœ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

flutter-๊ฒฝ๋กœ-์„ค์ •ํ•˜๊ธฐ
flutter ๊ฒฝ๋กœ ์„ค์ •ํ•˜๊ธฐ

๋ฌธ์ œ๊ฐ€ ์—†๋‹ค๋ฉด ์•„๋ž˜ ํ™”๋ฉด๊ณผ ๊ฐ™์ด Flutter ํ”„๋กœ์ ํŠธ๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

Flutter-ํ”„๋กœ์ ํŠธ๊ฐ€-์ƒ์„ฑ๋œ-๋ชจ์Šต
Flutter ํ”„๋กœ์ ํŠธ๊ฐ€ ์ƒ์„ฑ๋œ ๋ชจ์Šต

๋ฐ˜์‘ํ˜•

'Programming > Flutter' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Flutter] ๊ฐ€์ƒ ๋””๋ฐ”์ด์Šค(Virtual device) ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•  (0) 2023.08.20