Kickstart Your Flutter Journey: Creating a Project in Android Studio Made Easy

Kickstart Your Flutter Journey: Creating a Project in Android Studio Made Easy

Introduction:

In this article, we will explore the process of creating a new Flutter project using Android Studio.

Prerequisites:

Make sure you have Flutter SDK and Android Studio installed on your machine. If not, I have already created a beginner friendly guide for the same. Please visit this link https://manojkulkarni.hashnode.dev/ready-to-become-a-flutter-developer-heres-how-to-build-your-first-app for more details.

To create a Flutter project using Android Studio, we need to install the Flutter Plugin for Android Studio. To do this, open Android Studio, select the Plugins option in the sidebar, and ensure the Marketplace tab is selected, as shown below.

I have already installed the Flutter plugin for Android Studio, which is why there is a ✅ next to the Flutter plugin, as shown in the image above. You will see an Install button. Click on the Install button to add the Flutter plugin to Android Studio. This will also install the Dart plugin. Once installed, you will find these plugins under the Installed tab, as shown below.

Create Flutter Project Using Android Studio:

To create Flutter project using Android Studio, follow below steps:

  • Select the Projects option in sidebar as shown below.

  • As we can see in above screen shot, there is a new option visible on welcome screen “New Flutter Project”. Select “New Flutter Project” option. It will open up a dialog as shown below.

  • This dialog shows the Flutter SDK path. Make sure it displays the correct path based on the Flutter SDK location on your machine. Click the Next button.

  • It will open up dialog as shown below.

  • We can enter details related to our Flutter project like:

    • Project Name

    • Project Location

    • Project Description

    • Type Of Flutter Project like Application, Plugin, empty etc

      project name, project location, description etc as shown below.

    • Organization

    • Android Platform Default Language. Kotlin is selected as a default language.

    • Platforms we want to support.

  • Once all details are entered, click on Create Button to create our Flutter project.

  • Android Studio will open up the project once created as shown below.

  • Now, to run this project on Android emulator, select the Android Emulator using the Select Device option as shown below.

  • Once the device is selected, click on ▶️ button to run the project on Android emulator.

  • Once the project is deployed on the Android emulator, you can see it under the Running Devices sidebar option, as shown below.

I have also created a YouTube video regarding this topic, so if you would like to watch a video tutorial, then please go to.

Conclusion:

In this article, we have successfully created a Flutter project using Android Studio. We started by ensuring the necessary prerequisites were in place, including the installation of the Flutter and Dart plugins. We then walked through the steps to create a new Flutter project, detailing how to configure project settings and deploy the project on an Android emulator. This guide provides a comprehensive overview for beginners looking to get started with Flutter development using Android Studio. I hope you found this article informative and helpful.

Happy Coding!