Select which AVD to use when emulating

I open my app in the Android emulator using ionic emulate android and it defaults to my most recent AVD (which is KitKat). I also have a Jellybean AVD set up, but I’m not sure how to select it. Is there a parameter that I can pass to ionic emulate?

Check out the cordova guide for this.

http://cordova.apache.org/docs/en/edge/guide_platforms_android_index.md.html#Android%20Platform%20Guide

2 Likes

Thanks! As suggested in the docs you posted I am using:

$ /path/to/project/cordova/run --target=NAME

2 Likes

run this command in your project file
ionic run android --list
you will get list of device disponible like this

        Available android devices:
        8ad9da49
        Available android virtual devices:
        Android_Accelerated_x86
        Nexus_S_API_23
        tab_10_4.4
        Android_ARMv7a
        Nexus_S_API_23_2

after that you can use target option to specific device or emulator

ionic run android --target="tab_10_4.4"

5 Likes