# Android emulator for a low-RAM laptop (4 GB or 8 GB)

On a 4 GB laptop, do not run the Android emulator locally. Use a real phone over USB, or a cloud emulator such as [Emuly](https://emuly.xyz/index.md), which runs Android on a remote machine and only shows the screen in your browser. On an 8 GB laptop, a local emulator can work if you close Android Studio and use small settings, but it will be slow.

Updated November 2026.

## Why the emulator needs so much memory

The Android emulator runs a full Android system in a virtual machine. Android itself wants 2 GB to 4 GB. Android Studio, Gradle and the build tools want several more. Google gives 8 GB as the minimum for Android Studio and recommends 16 GB.

With 8 GB, the IDE, a Gradle build and the emulator compete for the same memory. Your system then swaps to disk, and everything slows down. With 4 GB, there is not enough memory for the emulator at all.

## Your options at a glance

| Option | RAM on your laptop | Cost | Notes |
|---|---|---|---|
| Cloud emulator (Emuly) | A browser tab | Free | About 30 h a month on GitHub Free. Android 16. No install. |
| Real phone over USB | Very little | Free | The fastest choice if you have an Android phone and a cable. |
| Local emulator, small settings | 8 GB or more | Free | Works on 8 GB if you close other apps. Not usable on 4 GB. |
| Paid cloud device farm | A browser tab | Paid | Real phones from many brands. Free trials are short. |

## Option 1: a free cloud emulator

A cloud emulator runs Android on a remote machine. Your laptop only shows a video of the screen and sends your taps. So the RAM on your laptop does not matter.

Emuly starts the emulator in a GitHub Codespace on your own account: a 4-core machine with 16 GB of RAM and hardware acceleration. Android gets 8 GB of that memory, so apps stay open. It uses the Codespaces hours in your GitHub plan, so it is free.

- **Price:** Free. It uses the Codespaces hours in your GitHub plan.
- **Free time:** About 30 hours a month on GitHub Free, about 45 on GitHub Pro
- **Platform:** Android 16 emulator with hardware acceleration (KVM). No iOS.
- **Install:** Nothing on your computer. No Android SDK.
- **Control:** Browser, HTTP API, CLI, adb and scrcpy
- **Agents:** Claude Code, Codex, Cursor, GitHub Copilot and any agent that can send HTTP requests
- **Source:** Open source, MIT license

1. Open [emuly.xyz](https://emuly.xyz/index.md) and click **Copy prompt**.
2. Paste the prompt into your coding agent, or follow the steps on the page.
3. Sign in to GitHub once. The phone opens in your browser in about 2 minutes.

You can install your own APK, use adb and scrcpy from your laptop, and run Flutter or Expo hot reload against the phone.

## Option 2: a real phone over USB

If you have an Android phone, it is the lightest test device. The phone runs the app, so your laptop uses almost no extra memory.

1. On the phone, open **Settings**, then **About phone**, and tap **Build number** 7 times to turn on developer options.
2. In **Developer options**, turn on **USB debugging**, or **Wireless debugging** to work without a cable.
3. Connect the phone and accept the prompt. Run `adb devices` to check that your laptop sees it.

## Option 3: a local emulator with small settings

On 8 GB, these settings make a local emulator usable. On 4 GB, they are not enough.

- **Close Android Studio:** Start the emulator from the command line with `emulator -avd <name>`, and build with Gradle in a terminal.
- **Lower the guest RAM:** In the AVD settings, set the RAM to 2048 MB.
- **Use an older, smaller image:** An x86_64 image without Google Play uses less memory than a Play Store image.
- **Turn off snapshots:** Start with `-no-snapshot` to skip the large snapshot file.
- **Use a small screen:** A 720p device profile needs less graphics memory than a large tablet.

> The emulator also needs hardware virtualization (VT-x or AMD-V). If your laptop does not have it, read [how to run an Android emulator without VT-x](https://emuly.xyz/android-emulator-without-vt-x.md).

## Which one should you pick?

- **4 GB laptop:** A cloud emulator, or a real phone. A local emulator will not run well.
- **8 GB laptop:** A cloud emulator for long sessions, or a local emulator with small settings for short tests.
- **Chromebook:** A cloud emulator in the browser. Most Chromebooks cannot run the Android emulator.
- **Work laptop with locked settings:** A cloud emulator. It needs nothing installed.

## Related

- [Run an Android emulator without VT-x or virtualization](https://emuly.xyz/android-emulator-without-vt-x.md)
- [Run Android Studio's emulator in GitHub Codespaces](https://emuly.xyz/android-emulator-in-github-codespaces.md)
- [Free Android emulators online, compared](https://emuly.xyz/compare.md)
- Start a free phone: https://emuly.xyz
