Member-only story
Ionic Capacitor Android APK command
Aug 3, 2023
Add Android to the Capacitor project and get the app ready to run.
My articles are open for everyone; non-member readers can read the article by clicking this Friend link.
First, add Android:
ionic capacitor add android
ionic capacitor copy android && cd android && ./gradlew assembleDebug && cd ..
Then, APK will be at the path:
android/app/build/outputs/apk/debug/app-debug.apk
If you want to run on the device directly from the command line:
ionic capacitor copy android && cd android && ./gradlew assembleDebug && ./gradlew installDebug && cd ..