Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Run a Flutter App on Android

    nader dabitnader dabit

    In this lesson we’ll learn how to create an Android emulator in Android Studio & run a Flutter project on an Android Emulator.



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    Instructor: Before we can launch our app on an Android emulator, we first need to make sure we're connected to an Android emulator. To view the connected devices, we can run the Flutter devices command.

    Here you'll either see a list of connected devices or No Devices Detected if no devices are connected. To see a list of available devices, we can run Flutter emulators.

    Here I have two available Android emulators, the Pixel 2 and the Pixel XL. If you've never created an Android emulator using Android Studio, you may see no emulators listed. Let's look at how to create an Android emulator.

    To create an Android emulator, we'll first need to open our Flutter project in Android Studio. In Android Studio, open the toolbar and click on Tools, then Android, and then ABD Manager. Here you'll see a list of your available devices and a Create Virtual Device button to create a new device.

    Let's click on the Create Virtual Device button to see how to create a new device. Here we'll see a list of available devices. Click on a device that you'd like to create and click Next.

    Next, we can choose the system image we'd like to work with and then click Next. Now you can give your device a name and click Finish to create the device.

    Now that the new device has been created, we should now see the device listed when we run Flutter emulators. To launch the new emulator, we can run flutteremulators--launch and the name of the emulator.

    To run the application on the device, we can now run flutterrun.