このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
flutterinstallerr [2022/02/07 10:01] muranko 作成 |
flutterinstallerr [2022/02/07 10:57] (現在) muranko |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Flutterインストール時にはまったこと ====== | ====== Flutterインストール時にはまったこと ====== | ||
===== 条件 ===== | ===== 条件 ===== | ||
- | * 2.10.0をインストール時にはまったことです。 | + | * 2.10.0をインストール |
==== flutter doctorでチェックエラー ==== | ==== flutter doctorでチェックエラー ==== | ||
+ | [[https:// | ||
+ | ①Androidのコマンドラインツールがないといわれています。Android Studioは入れてあったんですが。\\ | ||
+ | ②Visual Studioもないといわれてますね。 \\ | ||
< | < | ||
行 29: | 行 32: | ||
! Doctor found issues in 2 categories. | ! Doctor found issues in 2 categories. | ||
</ | </ | ||
+ | |||
+ | ===== Flutterで使用するAndroid SDKのコマンドラインツールを導入する ===== | ||
+ | |||
+ | ①は以下の方法で対応してみました。\\ | ||
- Android Studioを起動し、Tools→SDK ManagerでSDK Managerを開く。 | - Android Studioを起動し、Tools→SDK ManagerでSDK Managerを開く。 | ||
行 36: | 行 43: | ||
{{: | {{: | ||
+ | |||
+ | flutter doctorを再度実施。\\ | ||
+ | |||
+ | < | ||
+ | Doctor summary (to see all details, run flutter doctor -v): | ||
+ | [✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], | ||
+ | [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) | ||
+ | ! Some Android licenses not accepted. | ||
+ | [✓] Chrome - develop for the web | ||
+ | [✗] Visual Studio - develop for Windows | ||
+ | ✗ Visual Studio not installed; this is necessary for Windows development. | ||
+ | Download at https:// | ||
+ | Please install the " | ||
+ | [✓] Android Studio (version 2021.1) | ||
+ | [✓] VS Code (version 1.63.2) | ||
+ | [✓] VS Code, 64-bit edition (version 1.26.0) | ||
+ | [✓] Connected device (3 available) | ||
+ | [✓] HTTP Host Availability | ||
+ | |||
+ | ! Doctor found issues in 2 categories. | ||
+ | </ | ||
+ | |||
+ | 今度はライセンス同意していないといわれました。言われたとおりにflutter doctor --android-licensesを実行してみます。\\ | ||
+ | |||
+ | < | ||
+ | C: | ||
+ | 5 of 7 SDK package licenses not accepted. 100% Computing updates... | ||
+ | Review licenses that have not been accepted (y/N)? y | ||
+ | |||
+ | 1/5: License android-googletv-license: | ||
+ | --------------------------------------- | ||
+ | Terms and Conditions | ||
+ | |||
+ | This is the Google TV Add-on for the Android Software Development Kit License Agreement. | ||
+ | : | ||
+ | </ | ||
+ | |||
+ | 全てのライセンスでyで同意しました。\\ | ||
+ | |||
+ | < | ||
+ | Doctor summary (to see all details, run flutter doctor -v): | ||
+ | [✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], | ||
+ | [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) | ||
+ | [✓] Chrome - develop for the web | ||
+ | [✗] Visual Studio - develop for Windows | ||
+ | ✗ Visual Studio not installed; this is necessary for Windows development. | ||
+ | Download at https:// | ||
+ | Please install the " | ||
+ | [✓] Android Studio (version 2021.1) | ||
+ | [✓] VS Code (version 1.63.2) | ||
+ | [✓] VS Code, 64-bit edition (version 1.26.0) | ||
+ | [✓] Connected device (3 available) | ||
+ | [✓] HTTP Host Availability | ||
+ | |||
+ | ! Doctor found issues in 1 category. | ||
+ | </ | ||
+ | |||
+ | すると、Androidのチェックは通りました!\\ | ||
+ | |||
+ | ===== Visual Studioの導入 ===== | ||
+ | |||
+ | ②についてはVisual Studioが入っていないので導入してみます。\\ | ||
+ | |||
+ | - [[https:// | ||
+ | - C++によるデスクトップ開発のみチェックしてインストールしてみます。\\ | ||
+ | - インストールできました。\\ | ||
+ | |||
+ | 再度flutter doctorを実行してみると\\ | ||
+ | < | ||
+ | Doctor summary (to see all details, run flutter doctor -v): | ||
+ | [✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], | ||
+ | [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) | ||
+ | [✓] Chrome - develop for the web | ||
+ | [✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5) | ||
+ | [✓] Android Studio (version 2021.1) | ||
+ | [✓] VS Code (version 1.63.2) | ||
+ | [✓] VS Code, 64-bit edition (version 1.26.0) | ||
+ | [✓] Connected device (3 available) | ||
+ | [✓] HTTP Host Availability | ||
+ | |||
+ | • No issues found! | ||
+ | </ | ||
+ | エラーはなくなりました!\\ | ||