Ionic Capacitor Android APK command

Ankit Maheshwari
Aug 3, 2023

--

Add Android to the Capacitor project and get the app ready to run.

Photo by Mika Baumeister on Unsplash

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 ..

--

--