Member-only story

Ionic Capacitor Android APK command

--

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.

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

--

--

Ankit Maheshwari
Ankit Maheshwari

No responses yet