【 Flutter 】Flutter を 基礎 から 学習 ( スタートガイド編 ) part04 環境構築
「基礎 から 学ぶ Flutter 」という書籍で 学習 したことを ブログでアウトプットしていこうと思います。今回は スタートガイド編 ( part04 )です。
環境構築の続きになります。
【 Flutter 】Flutter を 基礎 から 学習 ( スタートガイド編 ) part03 環境構築
Flutterの公式サイトに従ってFlutter SDKをインストールしていきます。
環境構築
環境変数の設定
環境変数の設定を行い、コマンドプロンプトやPowerShellでflutter
コマンドを使えるようにする設定です。
私はD:\flutter\bin
をPathに追加しておきました。
flutter doctor
futter doctor
コマンドで自身の端末でflutterが使用可能か確認します。
なんという新設設計!
PowerShellから早速実施してみました。
PS D:\flutter> flutter doctor
╔════════════════════════════════════════════════════════════════════════════╗
║ Welcome to Flutter! - https://flutter.dev ║
║ ║
║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
║ statistics and basic crash reports. This data is used to help improve ║
║ Flutter tools over time. ║
║ ║
║ Flutter tool analytics are not sent on the very first run. To disable ║
║ reporting, type 'flutter config --no-analytics'. To display the current ║
║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║
║ event will be sent, and then no further information will be sent by the ║
║ Flutter tool. ║
║ ║
║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║
║ Note: The Google Privacy Policy describes how data is handled in this ║
║ service. ║
║ ║
║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║
║ crash reports to Google. ║
║ ║
║ Read about data we send with crash reports: ║
║ https://flutter.dev/docs/reference/crash-reporting ║
║ ║
║ See Google's privacy policy: ║
║ https://policies.google.com/privacy ║
╚════════════════════════════════════════════════════════════════════════════╝
Running "flutter pub get" in flutter_tools... 12.2s
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale ja-JP)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] VS Code (version 1.58.2)
[√] Connected device (2 available)
! Doctor found issues in 2 categories.
PS D:\flutter>
Android Studio以外はクリアできていました!
Android Studioはこれからインストール予定なので問題なさそうですね😄
次回はAndroid Studioのインストールに進みます。
今日はここまで!
ディスカッション
コメント一覧
まだ、コメントがありません