FlutterBasic 2 min read

Flutter Android setup: SDK, emulator and physical device

Configure Android development tools, select a compatible Java runtime, detect an emulator or physical device and verify a Flutter run.

On this page

Android setup is a separate layer above a working Flutter command. You need Android SDK/build tools and a usable target, while Gradle needs a compatible Java runtime.

Step 1: install the required Android tools

Follow the current official Android setup page . In Android Studio’s SDK Manager, install the platform, build tools and command-line tools required by that guide and your project. Use the SDK location reported by the tooling rather than maintaining accidental duplicate SDKs.

Step 2: inspect the selected Java runtime

Run flutter doctor -v and read the Java path in the Android toolchain output. Compare that with your project’s Gradle wrapper and Android Gradle Plugin requirements. java -version alone can report a different runtime from the one Flutter uses.

Use the FlutterFever JDK guide for runtime-selection context, and the Java/Gradle diagnostic guide for a specific mismatch. Do not upgrade every tool simply because a newer version exists.

Step 3: review Android licenses

Run flutter doctor –android-licenses in an interactive terminal and review the agreements. Accept only when you are authorized. If the command fails before presenting agreements, inspect command-line tool installation and Java first.

Step 4: prepare one run target

For an emulator, create an Android virtual device with an appropriate system image and start it. For a physical device, enable the platform’s developer/debugging workflow, connect it and approve the device’s debugging prompt when appropriate.

An emulator listed in the manager is not necessarily running or visible to Flutter. Check the actual device list:

flutter doctor -v
flutter devices

Step 5: run a clean sample

Create the sample from create and run . Select the detected device ID when more than one target exists. Wait for the first build, which can download dependencies and prepare caches.

Verify the whole interaction

Tap a control, rotate the device where supported and relaunch. Then compare a fresh sample with any older project that fails. The final Gradle task name is a location, not a diagnosis; read the first meaningful cause in the build output.

How this topic connects

Understand first

Apply it next

Lesson progressMark complete after checking the example and exercise.

Find your next idea

Search lessons, code examples and projects.

Type a few words to start exploring.