Run Ionic 5 app on real android device using capacitor

Issue

I’ve recently started working with capacitor using using ionic 5. I’ve read all the capacitor documentation but I didn’t find any guidance that how can I run Ionic 5 app on real android device. Can anyone guide me how can run Ionic 5 app on real android device? Thanks.

Solution

Capacitor apps are run from Android Studio directly

If you already have an Ionic project with Capacitor integrated, just run npx cap open to open Android Studio, and with a device plugged, do Run -> Run 'app' or click the green triangle button.

Answered By – jcesarmobile

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published