Prerequisites
For remote emulators:- Node.js 22.12.0+ or 24.0.0+
- Android SDK platform-tools (adb), with
ANDROID_HOMEexported and pointing at the SDK directory that containsplatform-tools/adb - An APK to upload
- Java JDK 24 (or later)
- Android Studio (latest stable) with platform-tools and emulator components
Install Node.js
Download from nodejs.org.Install adb
Download the Android SDK platform-tools and unzip them into an SDK directory, then exportANDROID_HOME at that
directory (not at platform-tools itself):
ANDROID_HOME at that SDK instead (see
Set ANDROID_HOME).
Install Java
Java is only needed for local emulators. Download JDK 24 from Oracle.If
java --version isn’t found, re-open your terminal or make sure
JAVA_HOME/bin is on your PATH.Install Android Studio
Android Studio is only needed for local emulators. Download Android Studio and complete the first-run setup. Include:- Android SDK Platform-Tools (ADB)
- Android Emulator
Set ANDROID_HOME
Point ANDROID_HOME at your Android SDK install. Typical locations:
- macOS:
/Users/<username>/Library/Android/sdk - Linux:
/home/<username>/Android/Sdk - Windows:
C:\Users\<username>\AppData\Local\Android\Sdk
- macOS (zsh)
- Linux (bash/zsh)
- Windows
Verify
Enable WebView debugging
If your app renders content inside an AndroidWebView, enable WebView
debugging so Momentic can attach and interact with elements inside the WebView.
Add this to your app’s startup code, before the WebView is used:
APK requirements
- Debug builds with
debuggable=truework without extra configuration. - Release builds must enable WebView debugging as above if they contain WebView content.
- Both ARM64 and x86_64 APKs are supported. Remote emulators use x86_64.
Next steps
Emulators
Local vs. remote emulators and regions
CI/CD
Run Android tests on every pull request