Flutter - adonisv79/bytecommander.com GitHub Wiki

Installation

Dependencies

Android Studio

  • Make sure you have installed android studio
  • In android Studio, go to Tools>SDK Manager
    • install an SDK Platform that you will use in the SDK Platform Tab.
    • In the SDK Tools tab, be sure to select Android SDK Command-Line Tools (Latest) and Android SDK Platform-tools
    • (Optional) Install Android Emulator if you have no device or want to emulate multiple types. In your System Environment Variable for PATH, add the following:
C:\Users\[windows_user]\AppData\Local\Android\Sdk\cmdline-tools\latest\bin

This adds the Android dev CLI installed from above.

Java

  • Make sure to have installed a supported JAVA version in your system.
  • Your system Environment needs to specify the "JAVA_HOME" variable which is pointed to the installation folder of the Java installation you will use (If it was installed via Android Studio it will probably be in '[DRIVE]:\Program Files\Android\Android Studio\jre').
  • To be able to use the right Java version in command prompt, make sure to add the java 'bin' folder to your path as well (Note: with the 'bin' like [DRIVE]:\Program Files\Android\Android Studio\jre\bin)

Flutter SDK

download the windows zip source from here and put it somewhere in your drive. Unzip in a folder named 'flutter_sdk' and run the following

flutter doctor -v

this will list all issues like missing dependencies. This dependencies include

  • Android Toolchain
    • Android license status unknown - just run
  • Android Studio
    • you just need to go to your android studio if you have it, go to Preferences > Plugins
    • In marketplace, locate Flutter and install. this will add Dart which is a dependency
  • VS Code (only if you use VS Code)
  • Connected Device (Just plug an android/ios device in your PC that allows dev mode)

Reference