Search code examples
androidandroid-studioreact-nativewebstorm

How to run Android Virtual Device in WebStorm


I've started react native programming recently, I use WebStorm for coding, I always have to run Android Studio and start my Android Virtual Device and then Close Android Studio and work with WebStorm and run and test my react native app.

how can I run my Android Virtual Device from webstorm without the need to open Android Studio?


Solution

  • solution

    Finally, with the help of "Martin Zeitler", I succeeded in doing this in the following way:

    In webstorm select File>settings, in search bar type "External Tools" select "External Tools", in "tools" section click on plus icon (add) fill this window like my parameter:

    Name: android avd
    *as you like

    Program: C:\Users(your user name)\AppData\Local\Android\Sdk\emulator\emulator.exe
    *this is your emulator.exe address and this is the default address, you have to replace (your user name) with your system user name or change the address for locating to your emulator.exe address

    Arguments: -avd Nexus_5X_API_23
    *Nexus_5X_API_23 is a sample you have to type your emulator name that you create it before in android studio

    Working directory: C:\Users(your user name)\AppData\Local\Android\Sdk\emulator
    *like Program address but without emulator.exe

    click ok

    now in webstorm in tools menu in External Tools section you can find android avd or your custom name. by click on it you can run your emulator from webstorm.

    finally you don't need android studio at all , you can run it from webstorm.