How to open the AVD manager on Ubuntu Linux from the command line?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
Use
android avd
to open the AVD Manager.I used a sudo bash command and that worked for me:
Android studio:v3.0.1
Get name:
Start emulator:
./android avd
is deprecated use~/Android/Sdk/tools/bin/avdmanager --help
instead!or if it is easier for you, move to the directory and use it like in the old version:
cd ~/Android/Sdk/tools/bin/
./avdmanager
check new
[options]
with--help
or-h
before you use avdmanagerfirst occurence in Android Studio 2.3 !
For thoose coming here because the
android avd
command has been deprecated*, here's how to do it now:Using Android Studio
Open Android Studio with a valid studio project (if you don't have one, simply create one empty). After you've your project open, go to
Tools => Android => AVD Manager
. Note that this menu does not appear if you don't have a valid Android Studio project open.Now you can safely close Android Studio if you only want the AVD Manager.
From command line
If you want to use the command line you'll first need to create the virtual device using
avdmanager
, located under$ANDROID_HOME/tools/bin/avdmanager
like so:After you created the device to emulate, then you need to open it with
emulator
, which is located under$ANDROID_HOME/tools/emulator
. The command for the previously created device should be something like:If it crashes saying something like...
Ensure you're running the
emulator
command inside the$ANDROID_HOME/tools
folder, otherwise may not work.If you already added a device VM you can list them all with
Check out the official documentation for more details (thanks to Jeff Xiao for this—in comments).
First of all to show all devices run the following command from the location - ~/Android/Sdk/tools
then you will see the list of devices id, in my case i got following devices
Now just run following command with the device id you want to run.