ユーザ用ツール

サイト用ツール


flutterinstallerr

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
flutterinstallerr [2022/02/07 10:04]
muranko
flutterinstallerr [2022/02/07 10:57] (現在)
muranko
行 4: 行 4:
  
 ==== flutter doctorでチェックエラー ==== ==== flutter doctorでチェックエラー ====
-[[https://docs.flutter.dev/get-started/install/windows|Flutter SDKのZip]]をダウンロードし、展開後、コマンドラインでflutter doctorを実行するとツール類がそろっているかチェックしてくれるのですがAndroidのコマンドラインツールがないと怒られまた。+[[https://docs.flutter.dev/get-started/install/windows|Flutter SDKのZip]]をダウンロードし、展開後、コマンドラインでflutter doctorを実行するとツール類がそろっているかチェックしてくれるのですが怒られました。\\ 
 +Androidのコマンドラインツールがないといわていす。Android Studioは入れてあっんですが。\\   
 +②Visual Studioもないといわれてますね。 \\ 
  
 <code> <code>
行 31: 行 33:
 </code> </code>
  
-以下の方法で解決できました。+===== Flutterで使用するAndroid SDKのコマンドラインツールを導入する ===== 
 + 
 +①は以下の方法で対応してみました。\\
  
   - Android Studioを起動し、Tools→SDK ManagerでSDK Managerを開く。   - Android Studioを起動し、Tools→SDK ManagerでSDK Managerを開く。
行 39: 行 43:
  
 {{:fluttererror1.png?600|}} {{:fluttererror1.png?600|}}
 +
 +flutter doctorを再度実施。\\
 +
 +<code>
 +Doctor summary (to see all details, run flutter doctor -v):
 +[✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], locale ja-JP)
 +[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
 +    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
 +[✓] Chrome - develop for the web
 +[✗] Visual Studio - develop for Windows
 +    ✗ Visual Studio not installed; this is necessary for Windows development.
 +      Download at https://visualstudio.microsoft.com/downloads/.
 +      Please install the "Desktop development with C++" workload, including all of its default components
 +[✓] 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.
 +</code>
 +
 +今度はライセンス同意していないといわれました。言われたとおりにflutter doctor --android-licensesを実行してみます。\\
 +
 +<code>
 +C:\Users\murak\src\flutter>flutter doctor --android-licenses
 +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.
 +                                :
 +</code>
 +
 +全てのライセンスでyで同意しました。\\
 +
 +<code>
 +Doctor summary (to see all details, run flutter doctor -v):
 +[✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], locale ja-JP)
 +[✓] 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://visualstudio.microsoft.com/downloads/.
 +      Please install the "Desktop development with C++" workload, including all of its default components
 +[✓] 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.
 +</code>
 +
 +すると、Androidのチェックは通りました!\\
 +
 +===== Visual Studioの導入 =====
 +
 +②についてはVisual Studioが入っていないので導入してみます。\\
 +
 +  - [[https://visualstudio.microsoft.com/ja/downloads/|こちらからVisual Studioのコミュニティ版]]をダウンロードしてインストール\\   {{:fluttererror2.png?600|}}
 +  - C++によるデスクトップ開発のみチェックしてインストールしてみます。\\   {{:fluttererror3.png?600|}}
 +  - インストールできました。\\   {{:fluttererror4.png?600|}}
 +
 +再度flutter doctorを実行してみると\\
 +<code>
 +Doctor summary (to see all details, run flutter doctor -v):
 +[✓] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.22000.434], locale ja-JP)
 +[✓] 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!
 +</code>
 +エラーはなくなりました!\\
  
  
flutterinstallerr.1644195850.txt.gz · 最終更新: 2022/02/07 10:04 by muranko