Flutter: Visual Studio์— ํ•„์š”ํ•œ ๊ตฌ์„ฑ ์š”์†Œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2019๋…„ 11์›” 05์ผ  ยท  9์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: flutter/flutter

๋ฒˆ์‹ ๋‹จ๊ณ„

  1. ์ƒˆ Windows ์‹œ์Šคํ…œ์— Flutter ์„ค์น˜
  2. ๋งˆ์Šคํ„ฐ ์ฑ„๋„๋กœ ์ „ํ™˜ํ•˜๊ณ  ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ
  3. "Desktop Development with C++" ์›Œํฌ๋กœ๋“œ๋ฅผ ์„ ํƒํ•˜์—ฌ Visual Studio 2019 Community Edition์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
  4. ํ™˜๊ฒฝ ๋ณ€์ˆ˜๊ฐ€ ๋ณ€๊ฒฝ๋œ ๊ฒฝ์šฐ ์ƒˆ cmd ์„ธ์…˜์„ ์‹œ์ž‘ํ•˜์‹ญ์‹œ์˜ค.
  5. flutter doctor ์‹คํ–‰ํ•˜๊ณ  ๋‹ค์Œ Visual Studio ๊ด€๋ จ ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค.

image

  1. ์˜ฌ๋ฐ”๋ฅธ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด๋Š” Visual Studio ์„ค์น˜ ๊ด€๋ฆฌ์ž ์„ค์ •์„ ๋‹ค์‹œ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

image

  1. ์ด ๋ฒ„๊ทธ๋ฅผ ๊ธฐ๋ก

๋กœ๊ทธ


[โˆš] Flutter (Channel master, v1.10.15-pre.405, on Microsoft Windows [Version 10.0.18362.418], locale en-US)
    โ€ข Flutter version 1.10.15-pre.405 at c:\Users\csell\flutter
    โ€ข Framework revision 28b5cc3825 (4 hours ago), 2019-11-05 11:50:30 +0100
    โ€ข Engine revision 7b968ff95f
    โ€ข Dart version 2.7.0

[โˆš] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    โ€ข Android SDK at C:\Users\csell\AppData\Local\Android\sdk
    โ€ข Android NDK location not configured (optional; useful for native profiling support)
    โ€ข Platform android-29, build-tools 29.0.2
    โ€ข Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    โ€ข All Android licenses accepted.

[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.3.7)
    โ€ข Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    โ€ข Visual Studio Community 2019 version 16.3.29424.173
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
        MSBuild
        MSVC v142 - VS 2019 C++ x64/x86 build tools
       - If there are multiple versions, install the latest one
        Windows 10 SDK (10.0.17763.0)

[!] Android Studio (version 3.5)
    โ€ข Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[โˆš] VS Code (version 1.39.2)
    โ€ข VS Code at C:\Users\csell\AppData\Local\Programs\Microsoft VS Code
    โ€ข Flutter extension version 3.5.1

[โˆš] Connected device (1 available)
    โ€ข Windows โ€ข Windows โ€ข windows-x64 โ€ข Microsoft Windows [Version 10.0.18362.418]

! Doctor found issues in 2 categories.
build desktop platform-windows flutter doctor tool

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

"Windows 10 SDK(10.0.17763.0)"๋ผ๋Š” ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  9 ๋Œ“๊ธ€

VS 2019 cmd ํ”„๋กฌํ”„ํŠธ์šฉ x64 ๊ธฐ๋ณธ ๋„๊ตฌ ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋ช…๋ น์ค„์—์„œ ๋‹ค์–‘ํ•œ MSVC ๋„๊ตฌ(์˜ˆ: msbuild)๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ flutter doctor ๋Š” ๋‹ฌ๋ž  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

์Šคํฌ๋ฆฐ์ƒท์€ ํ•„์ˆ˜ SDK ๋ฒ„์ „์ด ์„ ํƒ๋˜์ง€ ์•Š์€ ๊ฒƒ์œผ๋กœ ํ‘œ์‹œ๋˜๋ฏ€๋กœ doctor ๋‚˜์—ด๋œ ํ•„์ˆ˜ ๊ตฌ์„ฑ ์š”์†Œ ์ค‘ ํ•˜๋‚˜๊ฐ€ ๋ˆ„๋ฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋ถ„๋ช…ํžˆ VS 2019์—์„œ๋Š” ์ •ํ™•ํ•œ ๋ฒ„์ „ ๋Œ€์‹  "10.0"์œผ๋กœ ๋ฒ„์ „์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” 2019๋…„์„ ์š”๊ตฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ ‡๊ฒŒ ํ•˜๋ ค๋ฉด 2019๋…„์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ด๊ฒƒ์ด ๊ณ ํ†ต์Šค๋Ÿฌ์šด ์ ์ด์—ˆ๊ณ  ์•ž์œผ๋กœ๋„ ๊ณ„์† ๋  ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?

"Windows 10 SDK(10.0.17763.0)"๋ผ๋Š” ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋ถˆํ–‰ํžˆ๋„ "์ตœ์‹  SDK"์— ๋Œ€ํ•œ ์ผ๋ฐ˜ ๊ตฌ์„ฑ ์š”์†Œ ID๊ฐ€ ์—†๋Š” ๊ฒƒ ๊ฐ™์œผ๋ฏ€๋กœ 10.0์œผ๋กœ ์„ค์ •ํ•˜๊ณ  vswhere ์ฟผ๋ฆฌ๋ฅผ ์ˆ˜ํ–‰ํ•˜๋Š” VS 2019๊ฐ€ ํ•„์š”ํ•˜๋”๋ผ๋„ ๋ชจ๋“  Windows์— ๋Œ€ํ•ด ๋„๊ตฌ ์—…๋ฐ์ดํŠธ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. SDK ๋ฆด๋ฆฌ์Šค.

๊ทธ๋Ÿฐ ๋‹ค์Œ ๋ฒ„๊ทธ๋Š” flutter doctor ๊ฐ€ ๋‘ ๊ฐ€์ง€ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋„๋ก ๋งํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

  1. ์ง€๊ธˆ "10.0.18362.0"์ธ "์ตœ์‹ " Windows SDK๋ฅผ ์„ค์น˜ํ•˜์‹ญ์‹œ์˜ค.
  2. ""Windows 10 SDK(10.0.17763.0)"๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

2 ์ž‘ํ’ˆ. # 1ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์ตœ์‹  ์„ค์น˜์— ๋Œ€ํ•œ ๋ผ์ธ์€ SDK๊ฐ€ ์•„๋‹Œ ๋นŒ๋“œ ๋„๊ตฌ์™€ ๊ด€๋ จ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๊ฒƒ์€ ํ˜•์‹์—์„œ ๋ถ„๋ช…ํ•ด์•ผํ•˜์ง€๋งŒ ๋“ค์—ฌ ์“ฐ๊ธฐ๊ฐ€ ์—‰๋ง์ธ ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ž…๋‹ˆ๋‹ค.

๋“ค์—ฌ์“ฐ๊ธฐ๋ฅผ ์ˆ˜์ •ํ•˜๊ณ , ๋“ค์—ฌ์“ฐ๊ธฐ์— ๊ด€๊ณ„์—†์ด ํ˜ผ๋™์ด ๋ฐœ์ƒํ•˜์ง€ ์•Š๋„๋ก ๋นŒ๋“œ ๋„๊ตฌ๋ฅผ ํ•ด๋‹น ์ค„์— ๋‹ค์‹œ ๋ช…์‹œ์ ์œผ๋กœ ์–ธ๊ธ‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์ด ํ˜ผ๋ž€์„ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด ํ…์ŠคํŠธ๊ฐ€ ๊ฐœ์„ ๋˜์—ˆ์œผ๋ฏ€๋กœ ๋‹ซ์Šต๋‹ˆ๋‹ค. #50487์€ ์ด ์ผ๋ฐ˜์ ์ธ ๋ฌธ์ œ๋ฅผ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด ํŠน์ • SDK ๋ฒ„์ „์— ๋Œ€ํ•œ ํ•„์š”์„ฑ์„ ์™„์ „ํžˆ ์ œ๊ฑฐํ•˜๋ ค๋Š” ์‹œ๋„๋ฅผ ์ถ”์ ํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰