Flutter Installation on Windows
This article will guide you through the installation of Flutter on your local computer in detail.
Installation in Windows:
First, install Flutter SDK released by Google by using the below link:
https://flutter.dev/docs/get-started/install
Step 2: Unzip the zip archive in a folder, say C:\flutter\
Step 3: Update the system path to include the flutter bin directory.
Step 4: Flutter provides a tool for the flutter doctor command to ensure that all the flutter development requirements are met.
flutter doctor
Step 5: Running the above command will analyze the system and show its report as shown below:
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-GB)
• Flutter version 2.2.3 at /Users/techbrain/Documents/FlutterSDK/flutter
• Framework revision f4abaa0735 (6 weeks ago), 2021–07–01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[!] Android toolchain — develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/techbrain/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3–6915495)
✗ Android licenses not accepted. To resolve this, run: flutter doctor — android-licenses
[✓] Xcode — develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome — develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3–6915495)
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (3 available)
• Apple Watch Series 6–44mm (mobile) • 8F186323–7409–42F4-BA6E-4899AFDAA624 • ios • com.apple.CoreSimulator.SimRuntime.watchOS-7–4 (unsupported) (simulator)
• iPhone 12 Pro Max (mobile) • 17D6D52B-8632–40D3–8AFF-640AE6AB7C60 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14–5 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
! Doctor found issues in 1 category.
Step 6: Install the latest Android SDK, if reported by flutter doctor
Step 7: Install the latest Android Studio, if reported by flutter doctor
Step 8: Start an android emulator or connect a real android device to the system.
Step 9: Install Flutter and Dart plugin for Android Studio. It provides a startup template to create a new Flutter application, an option to run and debug Flutter application in the Android studio itself, etc.,
Open Android Studio.
Click File > Settings > Plugins.
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Restart Android studio.