How to Open and Run a Flutter Project in Android Studio (2026)

Setting up a Flutter project in Android Studio can feel overwhelming at first. In this guide, we walk through every step — from installing Flutter and Dart plugins to setting the Flutter SDK path, creating an emulator, and running your project with Run.

Quick summary: Android Studio → Flutter plugin → Flutter SDK path → Open root folder → Emulator → Run ✅
How to open and run a Flutter project in Android Studio — SDK path setup and plugin installation guide
The two most critical steps: setting the Flutter SDK path and opening the correct root folder.

Related Posts


Table of Contents

  1. Open Android Studio
  2. Install Flutter / Dart Plugins
  3. Set the Flutter SDK Path
  4. Open the Flutter Project from the Correct Folder
  5. Set Up and Launch an Emulator (Device Manager)
  6. Run the Project (Run / flutter run)
  7. Important Files in a Flutter Project
  8. Common Errors and Fixes
  9. VS Code or Android Studio?
  10. Frequently Asked Questions (FAQ)
  11. Conclusion

1) Open Android Studio

The first step is simple: launch Android Studio. If this is your first time, Android Studio may prompt you to install or update core components (SDK Manager, etc.) in the background. Let those finish before moving on.

Android Studio welcome screen — starting point for Flutter setup
Once Android Studio is open, we move on to plugin and SDK configuration.

2) Install Flutter / Dart Plugins

To develop Flutter apps in Android Studio, you need both the Flutter and Dart plugins. Installing Flutter usually installs Dart automatically — if not, install it separately.

Path: File → Settings → Plugins

  • Search for Flutter in the Marketplace → Install
  • If needed, search for Dart and Install it too
  • Android Studio will ask to Restart → click Restart
Installing Flutter and Dart plugins in Android Studio Plugins Marketplace
After installing the Flutter plugin, Android Studio must be restarted.

3) Set the Flutter SDK Path (Most Critical Step)

Most "it's not working" problems in Flutter + Android Studio come down to a missing Flutter SDK path. You need to point Android Studio to the root Flutter folder — the one that contains the bin directory.

Path: File → Settings → Languages & Frameworks → Flutter

Example path: C:\src\flutter

⚠️ Tip: If you see "Flutter SDK path not set", do not skip this step. Almost every other error traces back to this missing configuration.
Setting the Flutter SDK path in Android Studio — Languages and Frameworks Flutter settings screen
With the correct SDK path set, project dependencies will resolve without issues.

4) Open the Flutter Project from the Correct Folder

The most common mistake when opening a Flutter project in Android Studio is selecting the android/ subfolder instead of the project root directory. Always open the root.

  • Correct: C:\...\my_flutter_app\
  • Wrong: C:\...\my_flutter_app\android\

Path: Android Studio welcome screen → Open → select the project root folder

Opening a Flutter project from the root folder in Android Studio — correct vs wrong path
Always open the Flutter project from the root folder — the android/ subfolder cannot be opened alone.

5) Set Up and Launch an Emulator (Device Manager)

To test your Flutter app, you need an Android Emulator. Android Studio's Device Manager lets you create and launch virtual devices.

Path: Tools → Device Manager

  • If no device exists: click Create device
  • Recommended hardware: Pixel 5 or Pixel 6
  • System Image: download API 33 / API 34 (x86_64)
  • Once created, press ▶️ Play to start it
Creating and launching a Flutter Android emulator using Android Studio Device Manager
Once the emulator is running, you can launch your Flutter app with Run.

6) Run the Project (Run / flutter run)

With the emulator running, you're ready to launch your app. Select your device in the toolbar and click Run.

  • Select your emulator from the device dropdown (e.g., Pixel 6 API 34)
  • Click the green ▶️ Run button

Alternatively, from the terminal:

flutter pub get
flutter run
Running a Flutter project in Android Studio using the Run button
If you get Gradle/SDK or dependency errors after clicking Run, see the "Common Errors" section below.

7) Important Files in a Flutter Project

  • lib/main.dart → entry point of your application
  • pubspec.yaml → package dependencies and asset definitions
  • Terminalflutter pub get, flutter run, flutter clean
💡 Quick tip: Any time you modify pubspec.yaml, run flutter pub get immediately. New packages won't be available until you do.

8) Common Errors and Fixes

A) "Flutter SDK path not set"

Set the Flutter SDK path via: File → Settings → Languages & Frameworks → Flutter

B) flutter doctor — Android Toolchain Showing Red

Make sure Android SDK and Platform Tools are installed via Android Studio's SDK Manager. Then run in terminal:

flutter doctor

C) Gradle / Build Errors

These two commands fix most build issues:

flutter clean
flutter pub get

D) Emulator / Device Not Showing Up

With the emulator running, check connected devices with:

flutter devices

9) VS Code or Android Studio?

The most productive setup is usually a hybrid: write code in VS Code, manage emulator and debug in Android Studio.

  • VS Code: fast, lightweight, great Flutter extensions
  • Android Studio: emulator/device manager, logcat, build and release tools
Recommended workflow: Start the emulator in Android Studio → open the project in VS Code → press F5 or run flutter run

10) Frequently Asked Questions (FAQ)

Why am I getting errors when opening a Flutter project in Android Studio?

The most common causes are a missing Flutter SDK path or opening the android/ subfolder instead of the project root. Check Step 3 and Step 4.

Do I need an emulator, or can I use a real device?

You can absolutely use a real device. Enable USB Debugging on your phone, connect it via USB, then verify it's detected with flutter devices.

The project opened but dependencies are missing — what should I do?

Run flutter pub get in the terminal. If the problem persists, run flutter clean first, then flutter pub get again.

How long does Flutter Android Studio setup take?

Plugin installation takes about 5 minutes. Downloading a System Image for the emulator can take 10–30 minutes depending on your internet speed. Budget 30–45 minutes for the full first-time setup.

Conclusion

In this guide, we covered every step needed to open and run a Flutter project in Android Studio. The three most critical points: Flutter and Dart plugins, Flutter SDK path, and opening the project from the root folder. Get those three right and your app will run on the emulator without issues.

Latest Software Developers - Yazılım Blog Yazarı Profil Resmi

Author

LatestSoftwareDevelopers

Blog where the most up-to-date software is followed.

Comments on FrontEnd

Leave a Reply

Your email address will not be published. Required fields are marked * *