执行android工具命令时看不到Android SDK和AVD Manager
我正在 Mac OS 上开发 Android。
第一次,我使用android工具命令(
/tools/android)来启动Android SDK和AVD Manager,如下所示链接: http://developer.android.com/sdk/adding-components.html。没关系。在 Mac OS 中,该程序的 UI 与 Windows 中的 UI 相同,如链接中的图像。
但是现在,当我运行该命令时,它只会启动 Android SDK Manager,如下图所示:
如何我还原它?请帮忙
I'm developing android on Mac OS.
In the first time, I use android tool command (<sdk>
/tools/android) to launch Android SDK and AVD Manager as this link: http://developer.android.com/sdk/adding-components.html. It's OK. In Mac OS, the program's UI is same as in Windows as the images in the link.
But now, when I run that command, it only start Android SDK Manager as the image below:
How do I revert it? Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
从终端更改为
/tools/
目录,然后键入以下内容以显示 AVD 管理器窗口(我使用的是 android-sdk r15):$ android avd
From the Terminal change to the
<sdk>/tools/
directory and type the following to display the AVD Manager window (I'm using android-sdk r15):$ android avd
我今天下载并安装了 Android 4.0.3 (API 15),但 /tools/ 或 /platform-tools/ 文件夹中没有“avd”工具。但是,您可以通过 Android SDK 管理器访问 Android 虚拟设备管理器(AVD 管理器)。
I downloaded and installed Android 4.0.3 (API 15) today and there is no "avd" tool in the /tools/ or the /platform-tools/ folder. However, you can access the Android Virtual Device Manager (AVD Manager) through the Android SDK Manager.
感谢 user1450537,他给出了这个答案:
“我知道它的答案有点晚了,但对于后代来说 - 这就是它的完成方式:单击“窗口”>“自定义透视图”>“检查“Android SDK 和 AVD 管理器”选项卡。确定按钮。”
Credit to user1450537 who gave this answer:
"I know its a bit late answer but for future generations - this is how its done: Click on Window > Customize perspective > Command Groups Availability tab. Check the "Android SDK and AVD Manager" option and hit the OK button."
您可以使用命令行打开 Android SDK Manager,但请确保您的计算机中安装了 Android SDK Manager。
在终端中使用此命令:
./android avd
You can use the command line for opening Android SDK Manager, but make sure Android SDK manager is installed in your machine.
Use this command in terminal:
./android avd
我必须将 AVD 管理器添加到菜单中。在默认首选项中我导航到
外观&行为>菜单和 我在工具栏
下找到了 AVD Manager
主菜单>工具>安卓
我单击“AVD Manager”,然后单击“添加后”并找到工具菜单,并将该项目添加到工具菜单中。重新启动AndroidStudio,菜单项出现在子菜单下
I had to add the AVD manager to the menu. in Default Preferences I navigated to
Appearance & Behavior > Menus & Toolbars
I found AVD Manager under
Main Menu > Tools > Android
I clicked on AVD Manager, then clicked "Add After" and found the tools menu, and added the item inside the tools menu. Restarted AndroidStudio, and the menu item was there under a submenu
在“运行配置”屏幕上,有一个“管理器...”按钮,它将打开 AVD 管理器。您必须首先选择“自动选择兼容设备...”以启用“管理器...”按钮。
On the Run Configurations screen, there is a "Manager..." button, which will open up the AVD Manager. You must first select "Automatically pick compatible device..." to enable the "Manager..." button.
在 Android 工具中,您可以从菜单栏选择
Tool
,然后选择Manage AVDs...
In the Android tool, you can select from the menu bar
Tool
thenManage AVDs...
假设 SDK 安装在
opt
文件夹中,您可以尝试以下命令:这将打开 SDK 管理器。
您需要sudo,因为存储文件夹(在本例中为选择)通常受到写入保护。
Suppose the SDK is installed in the
opt
folder, you could try the following command:This will open the SDK manager.
You need the sudo as often the storing folder (opt in this case) is protected from writing.
我已经解决了你不是在java的角度。打开前往窗口 ->开放视角->爪哇。
I've solved. You are not in java perspective. Open going to Window -> Open Perspective -> Java.
如果您经常使用,您还可以将
/tools
添加到PATH
中。打开您的~/.bashrc
文件并添加以下行:然后只需通过
source ~/.bashrc
重新加载该文件或重新启动终端。从现在起,您可以使用如下命令(无论您在哪里):You can also add
<sdk>/tools
to yourPATH
if you use it often. Open your~/.bashrc
file and add this line:Then just reload the file by
source ~/.bashrc
or restart the terminal. Since now you can use commands like these (in whatever location you are):那么您缺少 AVD 管理器吗?此较新的更新具有 SDK 和 AVD 的单独可执行文件,因此您不必等待 SDK 更新库。 “AVD 管理器”可执行文件与“SDK 管理器”位于同一文件夹中。尝试手动导航到那里。我不使用 Mac,所以我无法帮助您,但它应该位于同一文件夹中。
So you are missing the AVD mannager? This newer update has separate executables for SDK and AVD, so you don't have to wait the SDK to update library. The "AVD manager" executable resides in the same folder as the "SDK manager". Try manualy navigating there. I don't use Mac so I can't help you there, but it should be in the same folder.