How to open the AVD manager on Ubuntu Linux from t

2020-01-27 03:48发布

How to open the AVD manager on Ubuntu Linux from the command line?

10条回答
在下西门庆
2楼-- · 2020-01-27 04:14

Use android avd to open the AVD Manager.

查看更多
太酷不给撩
3楼-- · 2020-01-27 04:14

I used a sudo bash command and that worked for me:

sudo ./avdmanager list

after running sudo ./avdmanager list

查看更多
三岁会撩人
4楼-- · 2020-01-27 04:19

Android studio:v3.0.1

Get name:

/home/user/Android/Sdk/tools$ android list avd

Start emulator:

/home/user/Android/Sdk/tools$ emulator -avd Nexus_6_API_23
查看更多
The star\"
5楼-- · 2020-01-27 04:23

./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 avdmanager

first occurence in Android Studio 2.3 !

查看更多
成全新的幸福
6楼-- · 2020-01-27 04:27

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:

$ANDROID_HOME/tools/bin/avdmanager create avd --force --name testAVD --abi google_apis/x86_64 --package 'system-images;android-23;google_apis;x86_64'

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:

emulator -avd testAVD

If it crashes saying something like...

[140022905190208]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib

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

emulator -list-avds

Check out the official documentation for more details (thanks to Jeff Xiao for this—in comments).

* The depreaction note says:

The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
查看更多
做个烂人
7楼-- · 2020-01-27 04:27

First of all to show all devices run the following command from the location - ~/Android/Sdk/tools

/home/user/Android/Sdk/tools> ./emulator -list-avds

then you will see the list of devices id, in my case i got following devices

Nexus_5X_API_28
Nexus_9_API_28

Now just run following command with the device id you want to run.

/home/user/Android/Sdk/tools> ./emulator -avd Nexus_9_API_28
查看更多
登录 后发表回答