Terminal
Terminal/Skill
Builds the Android app and runs it on an emulator or connected device with Gradle and native-run.
By Builder.io
Works with
npx skills add builderio/builder-agent-skills --skill android-nativeRun ./gradlew assembleDebug to build the debug APK.
Use npx native-run to run the app on an emulator or a physically connected device. Call npx native-run android --list to identify available targets (both emulators and connected devices will appear). If there is more than one option, ask the user which one to use.
Example:
./gradlew assembleDebug && npx native-run android --app app/build/outputs/apk/debug/app-debug.apk --target Pixel_10_Pro
Ensure USB debugging is enabled on the device (Settings → Developer Options → USB Debugging) and the device is connected via USB. Verify it is detected with:
adb devices
Then build and deploy:
./gradlew assembleDebug && adb install app/build/outputs/apk/debug/app-debug.apk
Or use native-run if the device appears in npx native-run android --list:
./gradlew assembleDebug && npx native-run android --app app/build/outputs/apk/debug/app-debug.apk --target <DeviceID>
adb devices shows the device as unauthorized, check the device screen and accept the USB debugging prompt.npx native-run android --list or adb devices first — do not guess device IDs.