# Android emulator build

> Android emulator build is an open-source agent skill for developer tools. Builds a React Native Release APK on an Android emulator and verifies the result. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/android-emulator-build
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** android-emulator-build
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through building a Release APK of an Expo React Native app with Gradle, starting a named Android Virtual Device, installing the build, launching it and capturing a screenshot. The build runs through a single npm script that performs a clean prebuild, selects JDK 17 and the pinned Android SDK for the process only, and keeps the emulator and adb calls scoped to serials the run owns.

After the build, bundled checker scripts read the APK to confirm the variant, the package name, the declared permissions, the embedded Hermes bundle, the target SDK and the native library alignment. A second checker tests the emulator screenshot for the expected size and for a blank screen, and the agent is expected to look at the image itself before reporting success.

It expects a repository with Node, a JDK 17 installation and the Android SDK packages already present, and it asks the developer to handle installs and licence acceptance rather than working around them. Its setup covers a contract file, a toolchain module and build scripts that are copied into the repo from the skill's templates.

## When your agent uses it

> Assembles Release APKs with Gradle on an AVD started by name (pinned JDK and SDK) and inspects them. Use when trying the app on the Android emulator, or Gradle, adb, an AVD or the SDK fails. Not for Play uploads (android-release-play).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/android-emulator-build)
- [No network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/android-emulator-build)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/android-emulator-build)

## Features

- **Clean Release APK build:** Runs a fresh prebuild and a single-ABI Gradle assembleRelease through one npm script.
- **Per-process toolchain selection:** Picks JDK 17 and the pinned Android SDK for each run without changing global Java settings.
- **Emulator install and launch:** Starts a named AVD on its own console port, installs the APK and waits for a ready signal.
- **APK evidence checks:** Reads the APK to confirm variant package, permissions, Hermes bundle and 16 KB alignment.
- **Screenshot verification:** Checks the captured screen for expected dimensions and blank output before review.

## Good for

- Build a preview Release APK and try it on the Android emulator
- Check that a production APK contains no test-only code
- Debug why Gradle, adb or the Android SDK fails during an emulator run
- Confirm which permissions a built APK declares

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/android-emulator-build`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/android-emulator-build &&
cp -R "$tmp/skills/android-emulator-build" ~/.claude/skills/android-emulator-build &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/android-emulator-build` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/android-emulator-build` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/android-emulator-build &&
cp -R "$tmp/skills/android-emulator-build" ~/.agents/skills/android-emulator-build &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/android-emulator-build` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/android-emulator-build` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/android-emulator-build &&
cp -R "$tmp/skills/android-emulator-build" ~/.cursor/skills/android-emulator-build &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/android-emulator-build` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/android-emulator-build
```

Or copy the folder to `~/.gemini/skills/android-emulator-build` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/android-emulator-build`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/android-emulator-build &&
cp -R "$tmp/skills/android-emulator-build" ~/.copilot/skills/android-emulator-build &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/android-emulator-build` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/android-emulator-build` into your agent's skills folder as `android-emulator-build`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Android emulator build need Android Studio?

No. The skill states that no Android Studio, Metro or upload key is needed for these emulator builds.

### Which JDK and SDK does Android emulator build use?

It pins JDK 17 and the React Native-matched Android SDK versions, and selects them per process rather than globally.

### Does Android emulator build upload anything to Google Play?

No. Play uploads and upload signing are covered by a separate skill, android-release-play.

### How do I install Android emulator build in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/android-emulator-build to use it in all your projects, or to .claude/skills/android-emulator-build in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Android emulator build run scripts?

Yes. It runs JavaScript and TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Android emulator build?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Android emulator build?

The closest alternatives to Android emulator build are Android release play, GitHub actions, Expo skill eval, Buildable mobile builder and Expo brownfield.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Android release play](https://ai-powered.com/skills/android-release-play): Android release play is an open-source agent skill for developer tools.
- [GitHub actions](https://ai-powered.com/skills/github-actions-callstackincubator): GitHub actions is an open-source agent skill for developer tools.
- [Expo skill eval](https://ai-powered.com/skills/expo-skill-eval): Expo skill eval is an open-source agent skill for developer tools.
- [Buildable mobile builder](https://ai-powered.com/skills/buildable-mobile-builder): Buildable mobile builder is an open-source agent skill for developer tools.
- [Expo brownfield](https://ai-powered.com/skills/expo-brownfield): Expo brownfield is an open-source agent skill for developer tools.
- [Android device](https://ai-powered.com/skills/android-device): Android device is an open-source agent skill for developer tools.
- [Android test](https://ai-powered.com/skills/android-test): Android test is an open-source agent skill for developer tools.
- [Android install](https://ai-powered.com/skills/android-install): Android install is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/android-emulator-build
