Android Studio Emulator Without Android Studio: Command-Line AVD Setup for Windows

Android Studio is the official way to run Google’s Android emulator, but it is a heavy IDE, and many users do not need it. If you want the emulator for testing apps, trying Android layouts, or running a clean Android environment — without installing a full development environment — you can install just the command-line tools and run the emulator from a terminal. This guide walks through that setup on Windows, step by step, including the common errors and how to fix them.

The result is a leaner installation: no IDE, no Gradle, no project scaffolding, just the emulator and the tools needed to create and launch virtual devices. It is the right approach for testers, students learning Android behaviour, and anyone who wants Google’s official emulator without the weight of Android Studio. It is not the right approach for casual gaming — gaming emulators such as BlueStacks or LDPlayer are faster and simpler for games — but for testing and development-adjacent use, the official emulator is unmatched in fidelity.

What You Need Before Starting

You need a Windows 10 or 11 PC, at least 8 GB of RAM for comfortable use, an SSD with several gigabytes free, and hardware virtualization enabled. Check virtualization in Task Manager under Performance and CPU; if it reads Disabled, enable Intel VT-x or AMD-V in your BIOS or UEFI settings and reboot. The official emulator requires virtualization, and without it the emulator either refuses to start or runs unbearably slowly.

You also need a Java Development Kit, because the Android command-line tools are Java-based. A current long-term-support JDK from a reputable distributor works; the exact version matters less than it used to, but avoid very old JDK releases. Install the JDK, note its installation path, and set the JAVA_HOME environment variable to that path. To set it, open System Properties, go to Advanced, click Environment Variables, and add JAVA_HOME pointing at the JDK folder. Add the JDK’s bin folder to your PATH as well, so the java command works from any terminal. Verify by opening a new Command Prompt or PowerShell window and running java -version, which should print version information rather than an error.

Finally, you need the Android command-line tools package, available from Google’s official Android developer site. Download the “Command line tools only” package for Windows. This is the legitimate, official distribution, and it contains the package manager you need to install everything else. Avoid third-party bundles that repackage these tools with extras you did not ask for.

Installing the Command-Line Tools

Extract the downloaded command-line tools ZIP to a folder you will keep permanently, such as C:\Android. The extracted folder contains a cmdline-tools directory. The tools expect a specific layout: the actual binaries should live in C:\Android\cmdline-tools\latest\bin, so if your extraction produced a different nesting, rearrange it to match. This layout requirement is a frequent source of confusing errors, and getting it right at the start saves troubleshooting later.

Open a terminal in the C:\Android\cmdline-tools\latest\bin folder, or add that folder to your PATH for convenience. The main tool you will use is sdkmanager, which downloads and installs Android platform packages. First, accept the SDK licenses by running sdkmanager --licenses and answering yes to each prompt. License acceptance is required before any package installs, and skipping it produces errors that look like download failures.

Next, install the packages you need. At minimum, install a platform-tools package, an emulator package, and a system image. The commands look like this:

sdkmanager "platform-tools" "emulator" "system-images;android-34;google_apis;x86_64"

That example installs the Android 14 (API 34) system image with Google APIs for 64-bit x86. If you want Android 15 instead, substitute the API 35 image. The google_apis variant includes Google Play services, which many apps expect; the plain variant does not. Choose google_apis unless you have a reason to avoid Google services. Installation downloads several hundred megabytes, so a stable connection matters, and the process can take several minutes.

Set the ANDROID_HOME environment variable to C:\Android and add C:\Android\platform-tools and C:\Android\emulator to your PATH. These variables tell the tools where the SDK lives and let you run emulator and adb from any terminal. Open a fresh terminal after setting variables, since existing terminals do not pick up the change.

Creating a Virtual Device From the Command Line

A virtual device, or AVD, is a configuration describing a virtual phone or tablet: its screen size, RAM, storage, and Android version. The avdmanager tool creates AVDs from the command line. A basic creation command looks like this:

avdmanager create avd -n Pixel_Test -k "system-images;android-34;google_apis;x86_64" -d pixel_7

Here, -n names the device, -k selects the system image you installed, and -d picks a device definition, in this case a Pixel 7 profile with its screen size and hardware characteristics. If you omit -d, avdmanager prompts you to choose from available definitions. The tool may ask whether to use a custom hardware profile; answering no accepts the device definition’s defaults, which is correct for most testing.

After creation, you can inspect the AVD with avdmanager list avd, which shows its name, path, target API, and skin. The AVD’s configuration lives in a folder under your user profile, and you can edit its config.ini file directly for fine-tuning: RAM size, heap size, screen resolution, and whether the device uses a hardware keyboard. Editing config.ini is the command-line equivalent of the graphical AVD manager’s advanced settings, and it is how experienced users tune virtual devices precisely.

For RAM, a good starting point is 2048 to 4096 MB depending on your PC’s total memory, matching the same restraint that applies to gaming emulators: leave enough for Windows. For storage, the default internal storage is usually sufficient for testing, but increase it if you install large apps. For graphics, the emulator defaults to hardware acceleration when your GPU supports it, which you want; software rendering is dramatically slower and only a fallback for machines without usable GPU acceleration.

Launching the Emulator

Launch your virtual device with the emulator command:

emulator -avd Pixel_Test

The first boot takes longer than later boots, because Android performs first-time setup. Later boots are faster, especially if you use snapshots, which save the emulator’s state on exit and restore it on launch. Snapshots are enabled by default for most AVDs and are one of the official emulator’s best features for testing: you can boot to a ready state in seconds rather than waiting through a full Android startup each time.

Once the emulator is running, it appears as a window resembling a phone or tablet, depending on your device definition. You can interact with it by mouse, install apps with adb install path\to\app.apk for apps you have legitimate rights to test — your own builds or apps distributed for testing — and inspect the device with adb devices to confirm the connection. The adb tool is the bridge between your PC and the virtual device, and it works identically whether the emulator was launched from Android Studio or from the command line.

Useful launch options include -no-snapshot-load for a cold boot when you want a clean state, -wipe-data to reset the virtual device to factory state, and -gpu host to force hardware graphics acceleration explicitly. For day-to-day testing, the plain launch command is usually sufficient, and snapshots handle the rest.

Common Problems and Fixes

If the emulator fails to start with a virtualization error, check that VT-x or AMD-V is enabled in BIOS and that no conflicting hypervisor is blocking access. On Windows, Hyper-V and the Windows Hypervisor Platform can interact with the emulator’s acceleration; Google’s documentation describes the current recommended configuration, and enabling the Windows Hypervisor Platform feature is often the fix on machines where Hyper-V is active.

If sdkmanager reports that it cannot find packages, check that your cmdline-tools folder layout matches the expected latest structure, and that you accepted licenses. If avdmanager cannot find a system image, confirm the image package name matches what you installed, including the API level and variant, because a mismatch here produces a “package not found” style error that is easy to misread as a download problem.

If the emulator boots but is extremely slow, the usual causes are disabled hardware acceleration, software rendering fallback, or insufficient RAM allocation. Check the emulator’s startup output for acceleration warnings, confirm your GPU drivers are current, and verify the AVD’s RAM setting is reasonable for your machine. If graphics look broken, try launching with -gpu swiftshader_indirect as a diagnostic: if software rendering looks correct, the problem is GPU driver related, and updating drivers is the fix.

If adb devices shows no device, confirm the emulator window is actually running, wait for boot to complete, and try adb kill-server followed by adb start-server to restart the bridge. A stale adb server is a common cause of phantom connection problems.

Why Bother Without Android Studio?

The command-line setup takes more effort than installing Android Studio and clicking through its graphical AVD manager, so the question is fair. The answer is control and weight. The command-line installation is smaller, it starts faster, it is scriptable — you can create, launch, and reset AVDs from batch files — and it fits naturally into automated testing workflows. For a tester or a student who runs the emulator frequently but never opens the IDE, that lightness is worth the one-time setup effort. For everyone else, Android Studio’s graphical manager remains the simpler path, and there is no shame in using it. Both routes run the same emulator; they differ only in how you manage it.

Frequently Asked Questions

Do I need Android Studio to run Google’s Android emulator?

No. The command-line tools package plus the emulator package is sufficient. Android Studio is a convenient graphical manager, but the emulator itself is a separate component that runs from the terminal.

How much RAM should a command-line AVD get?

Give it 2048 to 4096 MB depending on your PC’s total RAM, leaving at least 4 GB for Windows and other programs. More than 4096 MB rarely helps testing and reduces what Windows has available.

Why does sdkmanager fail to find packages?

The most common causes are an incorrect cmdline-tools folder layout — the binaries must be under cmdline-tools\latest\bin — and unaccepted SDK licenses. Fix the layout, run sdkmanager –licenses, and retry.

Can I install apps on a command-line emulator?

Yes. Use adb install with an app package you have legitimate rights to test, such as your own build or an app distributed for testing. The emulator behaves like a normal Android device for installation purposes.

Is the official emulator good for gaming?

Not really. It is built for testing and development fidelity, not gaming performance. Gaming emulators such as BlueStacks, LDPlayer, or MuMuPlayer are faster and simpler for playing games.

Legal Emulation Disclaimer

This guide covers Google’s official Android emulator, obtained through official channels, and apps installed for legitimate testing purposes. This guide does not host, link to, or distribute copyrighted ROMs, ISOs or BIOS files, and it does not help readers obtain pirated software. Always obtain software from official sources and respect the licensing terms of the apps you test.

Leave a Comment