执行android工具命令时看不到Android SDK和AVD Manager

发布于 2024-12-15 11:54:57 字数 503 浏览 3 评论 0原文

我正在 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:

enter image description here

How do I revert it? Please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

番薯 2024-12-22 11:54:57

从终端更改为 /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

最美不过初阳 2024-12-22 11:54:57

我今天下载并安装了 Android 4.0.3 (API 15),但 /tools/ 或 /platform-tools/ 文件夹中没有“avd”工具。但是,您可以通过 Android SDK 管理器访问 Android 虚拟设备管理器(AVD 管理器)。

  • 在“工具”窗口中执行不带任何参数的“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.

  • execute the "android" tool with no arguments in the "Tools" window,
  • select "Manage AVDs"
很快妥协 2024-12-22 11:54:57

感谢 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."

从来不烧饼 2024-12-22 11:54:57

您可以使用命令行打开 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

这个俗人 2024-12-22 11:54:57

我必须将 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

唔猫 2024-12-22 11:54:57

在“运行配置”屏幕上,有一个“管理器...”按钮,它将打开 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.

白云不回头 2024-12-22 11:54:57

在 Android 工具中,您可以从菜单栏选择 Tool,然后选择 Manage AVDs...

In the Android tool, you can select from the menu bar Tool then Manage AVDs...

比忠 2024-12-22 11:54:57

假设 SDK 安装在 opt 文件夹中,您可以尝试以下命令:

sudo /opt/android-sdk/tools/android ; exit;

这将打开 SDK 管理器。
您需要sudo,因为存储文件夹(在本例中为选择)通常受到写入保护。

Suppose the SDK is installed in the opt folder, you could try the following command:

sudo /opt/android-sdk/tools/android ; exit;

This will open the SDK manager.
You need the sudo as often the storing folder (opt in this case) is protected from writing.

梦言归人 2024-12-22 11:54:57

我已经解决了你不是在java的角度。打开前往窗口 ->开放视角->爪哇。

I've solved. You are not in java perspective. Open going to Window -> Open Perspective -> Java.

红玫瑰 2024-12-22 11:54:57

如果您经常使用,您还可以将 /tools 添加到 PATH 中。打开您的 ~/.bashrc 文件并添加以下行:

# <sdk> is path to your SDK, e.g. /Users/akarienta/Library/Android/sdk
export PATH=${PATH}:<sdk>/tools  

然后只需通过 source ~/.bashrc 重新加载该文件或重新启动终端。从现在起,您可以使用如下命令(无论您在哪里):

# opens Android SDK Manager
$ android
# opens Android AVD Manager
$ android avd

You can also add <sdk>/tools to your PATH if you use it often. Open your ~/.bashrc file and add this line:

# <sdk> is path to your SDK, e.g. /Users/akarienta/Library/Android/sdk
export PATH=${PATH}:<sdk>/tools  

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):

# opens Android SDK Manager
$ android
# opens Android AVD Manager
$ android avd
蓝眼泪 2024-12-22 11:54:57

那么您缺少 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文