Start building Flutter Android apps on ChromeOS
Software requirements
#To write and compile Flutter code for Android, you must have the following version of ChromeOS and the listed software packages.
Operating system
#Flutter supports ChromeOS.
Development tools
#To develop Flutter on ChromeOS:
Enable Linux on your Chromebook.
Install the following packages:
curl
,git
,unzip
,xz-utils
,zip
,libglu1-mesa
sudo apt-get update -y && sudo apt-get upgrade -y; sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
To develop Android apps:
Install the following prerequisite packages for Android Studio:
sudo apt-get install libc6:amd64 libstdc++6:amd64 lib32z1 libbz2-1.0:amd64
Install Android Studio to debug and compile Java or Kotlin code for Android. Flutter requires the full version of Android Studio.
The developers of the preceding software provide support for those products. To troubleshoot installation issues, consult that product's documentation.
Configure a text editor or IDE
#You can build apps with Flutter using any text editor or integrated development environment (IDE) combined with Flutter's command-line tools.
Using an IDE with a Flutter extension or plugin provides code completion, syntax highlighting, widget editing assists, debugging, and other features.
Popular options include:
- Visual Studio Code with the Flutter extension for VS Code.
- Android Studio with the Flutter plugin for IntelliJ.
- IntelliJ IDEA with the Flutter plugin for IntelliJ.
Install the Flutter SDK
#To install the Flutter SDK, you can use the VS Code Flutter extension or download and install the Flutter bundle yourself.
Use VS Code to install Flutter
#To install Flutter using these instructions, verify that you've installed Visual Studio Code and the Flutter extension for VS Code.
Prompt VS Code to install Flutter
#Launch VS Code.
To open the Command Palette, press Control + Shift + P.
In the Command Palette, type
flutter
.Select Flutter: New Project.
VS Code prompts you to locate the Flutter SDK on your computer.
If you have the Flutter SDK installed, click Locate SDK.
If you don't have the Flutter SDK installed, click Download SDK.
This option sends you the Flutter install page if you haven't installed Git as directed in the development tools prerequisites.
When prompted Which Flutter template?, ignore it. Press Esc. You can create a test project after checking your development setup.
Download the Flutter SDK
#When the Select Folder for Flutter SDK dialog displays, choose where you want to install Flutter.
VS Code places you in your user profile to start. Choose a different location.
Consider
~/development/
Click Clone Flutter.
While downloading Flutter, VS Code displays these pop-up notifications:
Downloading the Flutter SDK. This may take a few minutes.
Initializing the Flutter SDK. This may take a few minutes.
The download and installation take a few minutes. If you suspect that the download has hung, click Cancel, then start the installation again.
When the Flutter installation succeeds, VS Code displays this pop-up notification:
Do you want to add the Flutter SDK to PATH so it's accessible in external terminals?
Click Add SDK to PATH.
When successful, a notification displays:
The Flutter SDK was added to your PATH
VS Code might display a Google Analytics notice.
If you agree, click OK.
To enable
flutter
in all Terminal windows:- Close, then reopen all Terminal windows.
- Restart VS Code.
Download then install Flutter
#To install Flutter, download the Flutter SDK bundle from its archive, move the bundle to where you want it stored, then extract the SDK.
Download the following installation bundle to get the latest stable release of the Flutter SDK.
For other release channels, and older builds, check out the SDK archive.
The Flutter SDK should download to the ChromeOS default download directory:
~/Downloads/
.Create a folder where you can install Flutter.
Consider creating a directory at
~/development/
.Extract the file into the directory you want to store the Flutter SDK.
tar -xf ~/Downloads/flutter_sdk_v1.0.0.zip -C ~/development/
When finished, the Flutter SDK should be in the
~/development/flutter
directory.
Add Flutter to your PATH
#To run Flutter commands in a shell, add Flutter to the PATH
environment variable.
Check which shell starts when you open a new console window. This would be your default shell.
echo $SHELL
This differs from another command that tells you which shell runs in your current console.
echo $0
To add Flutter to your
PATH
, expand the entry for your default shell, then choose the command.Show
bash
commandecho 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.bash_profile
Show
zsh
commandecho 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.zshenv
Show
fish
commandfish_add_path -g -p ~/development/flutter/bin
Show
csh
commandecho 'setenv PATH "$HOME/development/flutter/bin:$PATH"' >> ~/.cshrc
Show
tcsh
commandecho 'setenv PATH "$HOME/development/flutter/bin:$PATH"' >> ~/.tcshrc
Show
ksh
commandecho 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.profile
Show
sh
commandecho 'export PATH="$HOME/development/flutter/bin:$PATH"' >> ~/.profile
To apply this change, restart all open terminal sessions.
Configure Android development
#Configure the Android toolchain in Android Studio
#To create Android apps with Flutter, verify that the following Android components have been installed.
- Android SDK Platform, API 35
- Android SDK Command-line Tools
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android Emulator
If you haven't installed these, or you don't know, continue with the following procedure.
Otherwise, you can skip to the next section.
Launch Android Studio.
The Welcome to Android Studio dialog displays.
Follow the Android Studio Setup Wizard.
Install the following components:
- Android SDK Platform, API 35
- Android SDK Command-line Tools
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android Emulator
Launch Android Studio.
Go to the Settings dialog to view the SDK Manager.
If you have a project open, go to Tools > SDK Manager.
If the Welcome to Android Studio dialog displays, click the More Options icon that follows the Open button and click SDK Manager from the dropdown menu.
Click SDK Platforms.
Verify that Android API 35 has been selected.
If the Status column displays Update available or Not installed:
Select Android API 35.
Click Apply.
When the Confirm Change dialog displays, click OK.
The SDK Quickfix Installation dialog displays with a completion meter.
When the install finishes, click Finish.
After you installed the latest SDK, the Status column might display Update available. This means some additional system images might not be installed. You can ignore this and continue.
Click SDK Tools.
Verify that the following SDK Tools have been selected:
- Android SDK Command-line Tools
- Android SDK Build-Tools
- Android SDK Platform-Tools
- Android Emulator
If the Status column for any of the preceding tools displays Update available or Not installed:
Select the needed tools.
Click Apply.
When the Confirm Change dialog displays, click OK.
The SDK Quickfix Installation dialog displays with a completion meter.
When the install finishes, click Finish.
Configure your target Android device
#Set up the Android emulator
#To configure your Flutter app to run in an Android emulator, follow these steps to create and select an emulator.
Enable VM acceleration on your development computer.
Start Android Studio.
Go to the Settings dialog to view the SDK Manager.
If you have a project open, go to Tools > Device Manager.
If the Welcome to Android Studio dialog displays, click the More Options icon that follows the Open button and click Device Manager from the dropdown menu.
Click Virtual.
Click Create Device.
The Virtual Device Configuration dialog displays.
Select either Phone or Tablet under Category.
Select a device definition. You can browse or search for the device.
Click Next.
Click .
Click one system image for the Android version you want to emulate.
If the desired image has a Download icon to the right of the Release Name, click it.
The SDK Quickfix Installation dialog displays with a completion meter.
When the download completes, click Finish.
Click Next.
The Virtual Device Configuration displays its Verify Configuration step.
To rename the Android Virtual Device (AVD), change the value in the AVD Name box.
Click Show Advanced Settings and scroll to Emulated Performance.
From the Graphics dropdown menu, select Hardware - GLES 2.0.
This enables hardware acceleration and improves rendering performance.
Verify your AVD configuration. If it is correct, click Finish.
To learn more about AVDs, check out Managing AVDs.
In the Device Manager dialog, click the Run icon to the right of your desired AVD. The emulator starts up and displays the default canvas for your selected Android OS version and device.
Set up your target Android device
#To configure your Flutter app to run on a physical Android device, you need a supported version of Android.
Enable Developer options and USB debugging on your device as described in the Android documentation.
[Optional] To leverage wireless debugging, enable Wireless debugging on your device as described in the Android documentation.
Plug your device into your ChromeOS computer. If your device prompts you, authorize your computer to access your device.
Verify that Flutter recognizes your connected Android device.
By default, Flutter uses the version of the Android SDK where your
adb
tool is based. To use a different Android SDK installation path with Flutter, set theANDROID_SDK_ROOT
environment variable to that installation directory.
Agree to Android licenses
#Before you can use Flutter and after you install all prerequisites, agree to the licenses of the Android SDK platform.
Open an elevated console window.
Run the following command to enable signing licenses.
flutter doctor --android-licenses
If you accepted the Android Studio licenses at another time, this command returns:
[========================================] 100% Computing updates... All SDK package licenses accepted.
You can skip the next step.
Before agreeing to the terms of each license, read each with care.
Check your development setup
#Run Flutter doctor
#The flutter doctor
command validates that all components of a complete Flutter development environment for ChromeOS.
Open a shell.
To verify your installation of all the components, run the following command.
flutter doctor
As you chose to develop for Android, you do not need all components. If you followed this guide, the command should output [✓]
for the tooling and platforms you set up.
Troubleshoot Flutter doctor issues
#When the flutter doctor
command returns an error, it could be for Flutter, VS Code, , the connected device, or network resources.
If the flutter doctor
command returns an error for any of these components, run it again with the verbose flag.
flutter doctor -v
Check the output for other software you might need to install or further tasks to perform.
If you change the configuration of your Flutter SDK or its related components, run flutter doctor
again to verify the installation.
Start developing Android on ChromeOS apps with Flutter
#Congratulations. Having installed all prerequisites and the Flutter SDK, you can start developing Flutter apps for Android on ChromeOS.
To continue on your learning journey, consult the following guides:
Manage your Flutter SDK
#To learn more about managing your Flutter SDK installation, consult the following resources.
Unless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2025-05-19. View source or report an issue.