如何在Mac上创建新的Android虚拟设备(AVD)?

时间:2012-08-27 14:39:43

标签: android eclipse sdk android-emulator avd

我正在使用android-sdk-macosx从互联网上下载,然后成功安装了Android SDK 2.2和2.1,然后我尝试在mac上创建新的AVD,但我对如何创建AVD一无所知。

我尝试了以下提到的内容供您参考:

Fig 1.0 Create new AVD

enter image description here

Fig 2.0 I tried to open SDK and AVD Manager in eclipse menu Window --> Android SDK Manager

enter image description here

4 个答案:

答案 0 :(得分:1)

在Eclipse中,转到Windows菜单,选择首选项选项,将出现以下对话框。只需使用“浏览”按钮选择Android-SDK文件夹即可。

enter image description here

完成此步骤后,单击“应用按钮”,

enter image description here

现在,您将能够在日食中创建新的AVD。

注意,我已使用Windows系统上传此图像,但我确信,MAC有一些相同类型的菜单选项。

答案 1 :(得分:1)

按照以下七个步骤解决此问题:

1. Start Eclipse, then select Help > Install New Software.
2. Click Add, in the top-right corner.
3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
4. If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
5. In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
6. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
7. When the installation completes, restart Eclipse.

答案 2 :(得分:0)

看起来你需要配置Eclipse来告诉它android-sdk-macosx目录的位置(可以在'Window> Preferences> Android> SDK Location'中完成。)

另外,请查看this page

答案 3 :(得分:0)

在图4.0的屏幕截图中,寡妇顶部有一条错误消息,这可能解释了为什么申请按钮不可用。 虽然无法完全阅读该消息,但我认为它表示您的ADT版本(Android Developer工具)与您的SDK版本不匹配:我可能想尝试更新两者。

另外,请查看this question,这可能是同一个问题。