codebam/hermes-skills/expo-standalone-apk

Claude Code and agent skill by codebam/hermes-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when building a standalone Expo Android APK.

Install

npx vskill@latest install codebam/hermes-skills/expo-standalone-apk

SKILL.md

The same SKILL.md was published earlier as codebam/hermes-skills/expo-standalone-apk.

Standalone Expo Android APK (this host)

Build, verify and hand over a sideloadable release APK for an Expo (SDK 57 era) project. Verified end-to-end on sops-pass-mobile (2026-09-28; Expo 57 / RN 0.86 / AGP 8.12 / Gradle wrapper 9.3.1, ~100 MB universal APK).

When to Use

  • "Give me an APK I can install" for an Expo app on this machine.
  • SDK-level bumps, Failed to find target with hash string 'android-N' errors,

release-signing questions, assembleRelease failures.

Toolchain (pre-provisioned — install nothing globally)

  • JDK 17 straight from the nix cache, e.g.:

nix shell nixpkgs#jdk17 -c bash -c 'export JAVA_HOME=$(dirname $(dirname $(readlink -f $(command -v javac)))); ... ./gradlew ...'

  • Android SDK at ~/Android/Sdk (licenses accepted; cmdline-tools/latest present).
  • android/local.properties must contain sdk.dir=/home/codebam/Android/Sdk —

expo prebuild does NOT write it (only expo run:android does); create it by hand.

  • First gradle run downloads the distribution + deps: run it as a background

process with notify, 10–30 min. A --daemon (default) warms later builds a lot. Useful flags: -Pandroid.suppressUnsupportedCompileSdk=<N> and org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m in gradle.properties.

SDK levels: how "latest" actually resolves

  • Pin levels in app.json via expo-build-properties so they survive

expo prebuild --clean: ["expo-build-properties", {"android": {"compileSdkVersion": 37, "targetSdkVersion": 37, "buildToolsVersion": "37.0.0"}}] → lands as android.compileSdkVersion=37 lines in android/gradle.properties.

  • Platform-hash trap: AGP resolves integer compileSdk = N to a platform

directory literally named android-N, but versioned platforms install as android-37.0 / android-37.2. Install platforms;android-37.0 and add ln -s android-37.0 ~/Android/Sdk/platforms/android-37 — without it every subproject dies with Failed to find target with hash string 'android-37'.

  • If compileSdk exceeds the AGP's tested max (8.12 → 36), put

android.suppressUnsupportedCompileSdk=37 in android/gradle.properties to silence the warning; the build works regardless.

  • ANY npx expo prebuild can clear and regenerate android/ — observed without

--clean too (prints "Clearing android") — it wipes hand-edits to gradle.properties (jvmargs, suppress flag) and deletes local.properties, so re-apply both after every prebuild run, not just clean ones.

Pipeline

  1. npx expo prebuild --platform android --no-install only when the native

project is missing or app.json plugin config changed; a committed android/ builds as-is.

  1. cd android && ./gradlew --console=plain assembleRelease (background + notify)

→ android/app/build/outputs/apk/release/app-release.apk (universal, all ABIs).

  1. The release variant is signed with the RN template debug keystore

(android/app/debug.keystore) — fine for sideloading; say so in release notes and swap in a real keystore for anything beyond personal use.

  1. Verify before handing over — never trust a green build alone:

~/Android/Sdk/build-tools/37.0.0/aapt2 dump badging <apk> | head -5 (package, versionName/Code, sdkVersion, targetSdkVersion, native-code ABIs). Also confirm the effective compileSdkVersion there — it reflects what AGP REALLY used, not what you meant to set.

Delivery & gotchas

  • Copy to a dist/ path (gitignored) and hand over with MEDIA:/abs/path/app.apk.
  • JS side is proven by npm test + the web smoke (expo-go-dev-loop skill); the APK

adds only the native shell + embedded Hermes bundle.

  • A red screen on the PHONE's dev server ("Metro has encountered an error") means

the dev bundle is broken — usually app-code imports of @react-navigation/* (see expo-go-dev-loop) — it says nothing about the last built APK.

  • Gradle logs: redirect to a file (> /tmp/gradle-release.log 2>&1) — the tool

output buffer truncates otherwise; grep What went wrong for failures.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/codebam/hermes-skills/expo-standalone-apk/badge)](https://verified-skill.com/skills/codebam/hermes-skills/expo-standalone-apk)

Something wrong with this skill or its page? Tell us.