简体   繁体   English

在 MAC OS X 上安装 ANDROID sdk

[英]Installing ANDROID sdk on a MAC OS X

I've been facing issues with my installation of Android sdk on my MAC.我在 MAC 上安装 Android sdk 时遇到了问题。

As instructed on the google website I've followed their instructions to install按照谷歌网站上的指示,我已按照他们的说明进行安装

ADT Plugin ADT 插件

Android SDK Android SDK

Eclipse platform Eclipse平台

The installation is not on this order but as directed by the website.安装不在此订单上,而是按照网站的指示进行。 After installation I followed the instructions to create a.bash_profile(it was not present on my computer) and I updated it with the directory settings.安装后,我按照说明创建了一个 .bash_profile(它在我的计算机上不存在),并使用目录设置对其进行了更新。 Now I've installed it and set the path folder on Eclipse using the preferences->android.现在我已经安装它并使用首选项-> android 在 Eclipse 上设置路径文件夹。 When I click apply and I exit I get an error stating that Android component is missing.当我单击应用并退出时,我收到一条错误消息,指出缺少 Android 组件。 Also to note that the android sdk->platform is supposed to contain an adb is empty.还要注意 android sdk->platform 应该包含一个 adb 是空的。 I used this question's solution and yet I get the same error 我使用了这个问题的解决方案,但我得到了同样的错误

Thank you for your input谢谢您的意见

UPDATE: It asks me to use the SDK manager to install I am unable to locate this component更新:它要求我使用 SDK 管理器安装我无法找到此组件

It sounds like you haven't installed any actual Android SDK platforms.听起来您还没有安装任何实际的 Android SDK 平台。

Go to the tools directory of the Android SDK and run android. Go 到 Android SDK 的工具目录并运行 ZC31B32364CE19CA8FCD150A417。 The Android SDK manager GUI will appear allowing you to install an android platform. Android SDK 管理器 GUI 将出现,允许您安装 android 平台。 Click on available packages, expand Android repository, and install the platform versions you want.单击可用包,展开 Android 存储库,然后安装所需的平台版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM