How to install Flutter on Windows 2024 | Setup Android Studio for Flutter Step by Step
3 min read
2 hours ago
Published on Feb 13, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial will guide you through the process of installing Flutter on a Windows machine and setting up Android Studio for Flutter development. Whether you're a beginner or transitioning to Flutter, this step-by-step guide will ensure you have everything configured properly to start building your mobile applications.
Step 1: Download Flutter SDK
- Visit the official Flutter website: flutter.dev.
- Navigate to the 'Get Started' section and choose 'Windows' as your operating system.
- Download the Flutter SDK ZIP file.
- Extract the downloaded ZIP file to a desired location on your computer, such as
C:\src\flutter
.
Step 2: Update System Environment Variables
- Search for "Environment Variables" in the Windows search bar and open the "Edit the system environment variables" option.
- In the System Properties window, click on the "Environment Variables" button.
- Under "System variables," find the "Path" variable and click "Edit."
- Add the Flutter SDK path:
- Click "New" and enter the path to the
flutter\bin
directory (e.g.,C:\src\flutter\bin
).
- Click "New" and enter the path to the
- Click "OK" to close all dialog boxes.
Step 3: Verify Flutter Installation
- Open a Command Prompt window.
- Type
flutter doctor
and press Enter. - This command checks your environment and displays a report of the status of your Flutter installation.
- Follow any recommendations provided by
flutter doctor
to resolve issues.
Step 4: Download and Install Android Studio
- Go to the Android Studio website.
- Download the latest version of Android Studio for Windows.
- Run the installer and follow the setup wizard, ensuring you install the Android SDK during the process.
Step 5: Configure Android Studio for Flutter
- Open Android Studio.
- Go to
File > Settings > Plugins
. - In the Marketplace, search for "Flutter" and install the Flutter plugin. This will also prompt you to install the Dart plugin.
- Restart Android Studio once the plugins are installed.
Step 6: Create a New Flutter Project
- Open Android Studio and select "New Flutter Project."
- Choose "Flutter Application" and click "Next."
- Configure your project settings:
- Set the Project name.
- Choose the Flutter SDK path (e.g.,
C:\src\flutter
). - Set the project location.
- Click "Finish" to create your project.
Step 7: Run Your First Flutter App
- Connect a physical device or start an Android emulator.
- In Android Studio, open the
main.dart
file. - Click the green "Run" button in the toolbar.
- Your Flutter app should launch on the connected device or emulator.
Conclusion
You have successfully installed Flutter and set up Android Studio for Flutter development on your Windows machine. With this setup, you can start building your Flutter applications. Remember to keep your Flutter SDK and Android Studio up to date for the best experience. Happy coding!