在没有Android Studio的情况下运行AVD模拟器 [英] Run AVD Emulator without Android Studio

查看:216
本文介绍了在没有Android Studio的情况下运行AVD模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在不首先启动Android Studio的情况下运行模拟器.也许从命令行.我知道此功能在较早的版本中可用,并且从那以后就消失了.但是也许有人发现了怎么做呢?

is there a way to run the emulator without starting the Android Studio first. Perhaps from the command line. I know that this feature was available in older versions and has vanished since then. But perhaps someone found out how to do it anyways?

推荐答案

从控制台运行模拟器的方法(我假设您之前使用Android Studio安装了模拟器)是

The way to run the emulator from the console (I assume that you installed it before, using Android Studio) is:

运行

cd ~/Android/Sdk/tools/bin && ./avdmanager list avd

OR

cd ~/Android/Sdk/tools && ./emulator -list-avds

您将获得虚拟安装设备的列表.在我的情况下是:

You will get the list od your virtual installed devices. In my case it was:

Available Android Virtual Devices:
  Name: Galaxy_Nexus_API_17
  Device: Galaxy Nexus (Google)
  Path: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd
  Target: Google APIs (Google Inc.)
  Based on: Android 4.2 (Jelly Bean) Tag/ABI: google_apis/x86
  Skin: galaxy_nexus
  Sdcard: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd/sdcard.img

复制您要运行的设备的名称,然后

Copy name of the device you want to run and then

cd ~/Android/Sdk/tools && ./emulator -avd NAME_OF_YOUR_DEVICE

就我而言:

cd ~/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_23

这篇关于在没有Android Studio的情况下运行AVD模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆