Installing Flutter

Performed steps while installing Flutter

inform Link to heading

  • Visit the page for installing Flutter on Windows
  • Obtain requirements
    • Windows PowerShell ≥ 5.0
    • Git for Windows 2.x
  • Use following commands to check versions
    • $PSVersionTable
    • git --version
  • Check versions @office
    • PowerShell 5.1.22000.832
    • Git for Windows 2.37.2.windows.2
  • Check versions @home
    • Windows PowerShell 5.1.19041.1682
    • Git for Windows 2.35.1.windows.2

donwload Link to heading

  • Download Flutter SDK
  • Download Android Studio
  • Download Google USB Driver.
  • Move files to I:\Android folder
     /i/Android
    $ ls -s --block-size=M
    total 1740M
    913M android-studio-2021.3.1.17-windows.exe*
    819M flutter_windows_3.3.10-stable.zip
      9M usb_driver_r13-windows.zip
    

install Link to heading

  • Extract content of flutter_windows_3.3.10-stable.zip file to I:\src\flutter
  • Run flutter doctor
    PS I:\> 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...                      28.7s
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19044.2251], locale en-US)
    [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
    [X] Visual Studio - develop for Windows
        X 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 (not installed)
    [√] VS Code, 64-bit edition (version 1.67.2)
    [√] Connected device (3 available)
    [√] HTTP Host Availability
    
    ! Doctor found issues in 3 categories.
    
  • Execute android-studio-2021.3.1.17-windows.exe file
  • Run flutter doctor again and get the same previous information
  • Update Flutter config for Android Studio directory
    PS I:\> flutter config --android-studio-dir "C:\Program Files\Android\Android Studio"
    Setting "android-studio-dir" value to "C:\Program Files\Android\Android Studio".
    
    You may need to restart any open editors for them to read new settings.
    
  • Run flutter doctor
  PS C:\Users\Sparisoma Viridi> flutter doctor
  Doctor summary (to see all details, run flutter doctor -v):
  [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19044.2251], locale en-US)
  [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
  [X] Visual Studio - develop for Windows
      X 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
  [√] VS Code, 64-bit edition (version 1.67.2)
  [√] Connected device (3 available)
  [√] HTTP Host Availability

  ! Doctor found issues in 2 categories.
  • Run Android Studio
    • Install suggested Android SDK
    • Exit Android Studio
  • Run flutter doctor
    PS I:> flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19044.2251], locale en-US)
    Checking Android licenses is taking an unexpectedly long time...[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
        X cmdline-tools component is missing
          Run `path/to/sdkmanager --install "cmdline-tools;latest"`
          See https://developer.android.com/studio/command-line for more details.
        X Android license status unknown.
          Run `flutter doctor --android-licenses` to accept the SDK licenses.
          See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
    [√] Chrome - develop for the web
    [X] Visual Studio - develop for Windows
        X 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.3)
    [√] VS Code, 64-bit edition (version 1.67.2)
    Scanning for devices is taking a long time...[√] Connected device (3 available)
    [√] HTTP Host Availability
    
    ! Doctor found issues in 2 categories.
    
  • Run Android Studio
    • Click More Action
      • Choose SDK Manager
        • Go to SDK Tools tab
          • Check Android SDK Command-line Tools (latest)
            • Click Apply button at the bottom
          • Repeat the step for Google USB Driver
    • Exit Android Studio
  • Accept SDK licenses
    PS C:\Users\Sparisoma Viridi> flutter doctor --android-licenses
    [=======================================] 100% Computing updates...
    5 of 7 SDK package licenses not accepted.
    Review licenses that have not been accepted (y/N)? y
    ..
    Accept? (y/N): y
    All SDK package licenses accepted
    
  • Run flutter doctor
    PS I:\> flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19044.2251], locale en-US)
    [√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    [√] Chrome - develop for the web
    [X] Visual Studio - develop for Windows
        X 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.3)
    [√] VS Code, 64-bit edition (version 1.67.2)
    [√] Connected device (3 available)
    [√] HTTP Host Availability
    
    ! Doctor found issues in 1 category.
    

note Link to heading

  • Visual Studio is not installed, since the goal is only for Android development
  • Stable internet connection is required for smooth installation