首页 > 代码库 > 搭建Android开发环境 for Mac (Yosemite)

搭建Android开发环境 for Mac (Yosemite)

本文环境:

Mac OS X Yosemite

JDK 1.7*

Eclipse 4.4 Luna

 

参考:http://developer.android.com/sdk/index.html#Other

1.在Home目录(用户名)建立一个 Development 文件夹(Google建议);

2.进入http://developer.android.com/sdk/index.html,点击 Android Studio下边的Other Download Options,跳转到SDK Tools Only;

3.下载对应的sdk_rxx.x.x,存放在 Development 文件夹并解压;

 

参考:http://developer.android.com/sdk/installing/installing-adt.html

4.打开Eclipse,点击主菜单的Help - Install New Software;(需要梯子)

5.点击安装界面右上方的Add,在对应栏输入:

  Name    ADT Plugin

  Location  https://dl-ssl.google.com/android/eclipse/

6.点击OK,选择Developer Tools,点击Next;

7.阅读并选择Accept the license agreements, 点击Finish;

8.安装过程中会弹出“the authenticity or validity of the software can‘t be established”,点击OK;

9.安装完成后,点击重启Eclipse;

10.Eclipse重启后,会提示须指定Android SDK目录,选择刚下载并解压的SDK目录,点击Open;

11.SDK Manager会自动打开,并提示须下载相关工具包:(需要梯子)

  (同时,Eclipse下会弹出“Welcome to Android Development,选择Use existing SDKs - 点击Browse - 选择SDK目录”)

 

参考:http://developer.android.com/sdk/installing/adding-packages.html

12.打开Tools文件夹,选择:

  Android SDK Tools

  Android SDK Platform-tools

  Android SDK Build-tools (选择最新版)

13.选择Android X.X (建议勾选4.0以上的所有版本)

14.其他选项:

  API - (Android Support Repository  Android Support Library)

  Google Play 服务 - (Google Repository  Google Play services)

  (Google Play 服务仅适用于装有Google Play商店的Android手机)

15.点击 Install XX packages;

16.在界面的左侧列表中,双击每一个包名以同意许可证协议;

17.点击Install;

18.等待下载...

19.下载完成后,在“Welcome to Android Development”界面下,选择Use existing SDKs - 点击Browse - 选择SDK目录”;

20. ...

 

搭建Android开发环境 for Mac (Yosemite)