Tuesday, 28 April 2020

ionic react android studio run on simulator

//cmd

//create ionic app
ionic start ionicApp

framework: react
start template: tabs
android support: yes

//build ionic app
ionic build -prod

//convert ionic react to java and open in android studio
npx cap add android
npx cap sync
npx cap open android

in android studio, click open avd manager to add virtual device

added pixel 2 as virtual device, click run

virtual device opens, wait for app to install. app runs

reference:
connect smartphone with android studio
https://javatutorial.net/connect-android-device-android-studio

ionic capacitor open android studio
https://capacitor.ionicframework.com/docs/android#next-steps

gradle module not support error
https://github.com/ionic-team/capacitor/issues/349

No comments:

Post a Comment