Android emulator for a low-RAM laptop (4 GB or 8 GB)
- Free
- About 30 h a month
- Android 16
- No install
- HTTP API for agents
- Open source
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, 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.
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.
- Open emuly.xyz and click Copy prompt.
- Paste the prompt into your coding agent, or follow the steps on the page.
- 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.
- On the phone, open Settings, then About phone, and tap Build number 7 times to turn on developer options.
- In Developer options, turn on USB debugging, or Wireless debugging to work without a cable.
- Connect the phone and accept the prompt. Run
adb devicesto 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-snapshotto 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.
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.
Want to try it? Start a free phone. It takes one prompt and a GitHub sign-in.