AVD: Unknown error / emulator did not start Android Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT

The emulator cannot find its SDK or AVD files.

Exact message you may see Cannot find AVD system pathPANIC: Missing emulator engine programEmulator: ERROR: unknown AVDEmulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
Seen on: Android

Meaning

ANDROID_SDK_ROOT/ANDROID_HOME or ANDROID_AVD_HOME point to the wrong place, or the system image was removed. Fix the paths or recreate the AVD.

Common causes

  • SDK path variable wrong
  • System image deleted
  • AVD moved to another folder

⚡ Quick fix

  1. Set ANDROID_SDK_ROOT correctly
  2. Re-download the system image
  3. Recreate the AVD

Detailed fix by platform

Shell

  1. kotlin
    export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
    emulator -list-avds

How to diagnose

  1. Env — ANDROID_SDK_ROOT?
  2. Image — installed?
  3. AVD — listed?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…Android license status unknown / licenses not accepted — flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses (Flutter / Dart)Android license statu…App Privacy: data collection doesn't match your declarations — ITMS-91061 / App Store Connect: privacy details don't match what the app collects (iOS)App Privacy: data col…author identity unknown — Author identity unknown *** Please tell me who you are. (Git)author identity unkno…cmdline-tools component is missing — flutter doctor: Android SDK is missing command-line tools; download from https://goo.gl/XxQghQ — cmdline-tools component is missing (Flutter / Dart)cmdline-tools compone…Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…Emulator can't reach localhost (use 10.0.2.2) — java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080 (Android)Emulator can't reach …Emulator: Not enough space to create userdata partition — emulator: ERROR: Not enough space to create userdata partition. Available: 2000 MB, need 6000 MB (Android)Emulator: Not enough …AVD: Unkn…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.