How to Run android emulator out side of android studio?

Viewed 27

enter image description here

using android studio chipmunk 2021, windows 11, flutter 3. today when wanted to lunch android studio and the emulator, it asked for something , and i accepted, now cant access my emulator out side of android studio, i write code with vs code not android studio beforr now, when i run android studio it brought a page to chose android sdk manager and emulators first. i simply choise my emulator and it start running out side of the editor. i want it back. i tried -> setting - emulator - lunch in a tool window -checked...----nothing... thanks in advance

2 Answers

If you use vscode, you can just click on No Device text on status bar. It will show you all available Android Virtual Devices (AVD) that you have configured in Android Studio.

See the image below for more information.

Choose android device in vscode

of course you can launch an Android virtual device outside of any IDE, you just want to run:

\path\to\android\sdk\emulator> emulator -avd <avd_name>

To get a list of AVD names, enter the command:

\path\to\android\sdk\emulator> emulator -list-avds

Once the virtual device starts, the ADB should be able to connect to it.

More details here.

Related