Mac配置Android开发环境变量及工具安装图_第1页
Mac配置Android开发环境变量及工具安装图_第2页
Mac配置Android开发环境变量及工具安装图_第3页
Mac配置Android开发环境变量及工具安装图_第4页
Mac配置Android开发环境变量及工具安装图_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Mac配置An droid开发环境变量及工具安装图本文详细地讲解了如何在Apple MAC机器上安装An droid开发工具,配置安装环境。包括,安装 Eclipse IDE、An droid Developme nt Tools( ADT )、以及更新环境变量等内容。An droid 开发工具为在一台Mac机上安装An droid,本文的讲解中需要下载以下工具:« Su n' s Java Developme nt Kit (JDK)* An droid Software Developer Kit (SDK)* Eclipse IDE* An droid Develope

2、r Tool (ADT) Eclipse plug-i nJava Developme nt Kit对于Mac开发者来说Mac OS X已经预装了 JDK 5的确省了些事。故本文省去此部分内容。但是如果你用的是 Windows或者Linux系统,我们需要先 下载JDK 5或JDK 6,下载地址。随便 提一下,说An droid开发必须要装Eclipse是个错误的,只能说 Google对专门针对Eclipse开发 插件。这些Eclipse使得编辑、编译、运行和调试变得更容易些。An droid Software Developme nt Kit请点击链接下载An droid SDK,下载过程中需

3、要你选择你使用的操作系统。下载文件为一个Zip文件,选择一个空文件夹并将压缩文件解压出来。本文中,我选择的路径依下图:H C C仝 JUursjJOHN1 m | QaJ % DCVtCESh AWr-AD.itt Mod firdP l*ephair<rtAndroid斗 6 45-产吐 *Bi iD-ikJndroid s-dk mac_ 8&Today, 2 06 FVQV.n nW th HP L echpgTod 科 f 2 21 PM丄 DesktopToday 3 ia PVT PLACES1 血 Doc jmf nrsYesi*rdayd 6;47 W 口 Dnk

4、tpp1,Mm tn sfi* cr.i£nitoih HD j j IJMTiJUHK15 String. 172. IS Gfi dVAildib r上;点击此文件夹下面的An droid 可运行程序,会出来如下图的对话框。在左侧对话框中选择Available Packages 。在右侧对话框中选中选择框,如下图。随后点击In stall Selected按钮开始下载更新。Eclipse IDE下载SDK比较耗时,所以我们现在可以腾出时间来下载 Eclipse。目前Eclipse的 版本有好几个,这里我下载的是 Eclipse IDE for Java Developers ,3

5、.5 Galileo 版本。解压下载到 的Eclipse IDE压缩文件。因为Eclipse IDE下载SDK比较耗时,所以我们现在可以腾出时间来下载Eclipse。目前Eclipse的版本有好几个,这里我下载的是 Eclipse IDE for Java Developers ,3.5 Galileo 版本。解压下载到的 Eclipse IDE压缩文件。因为我只会将 Eclipse用于An droid开发,故将其解压到刚才的 An droid文件夹的 个子文件夹eclipse中。/Users/JOHN/AndroidDEVICE口 Deepha/cniDisk hQuinwh HDDeskt

6、op丄fNamtDate Modi1 android-sdk-mac B6Today, 2二 eclipseToday, 8:H« anlfacis.xmf 口 configuration 卜 口 drcpinsYesterday Y«sterda*Feb 18h 2t丁卜Madnioh HD (_._J Liters 蜚 JOHNAndre dedip&eL of 13 sekned, 172.3 GB ivailW-e安装 An droid Developme nt Tools (ADT)在刚才的eclipse文件夹中双击 Eclipse.exe 运行Eclip

7、se。在菜单中选择 Help,点击In stallNew software。依下图在弹出的对话框输入对应的地址并点击Add 。InstallAvailable SoftwareSelect a lile or enter the location of d lite.Work with: 皿11茁妙-8岁白迎£一閃世朗已也1廿孚亡1血証*Add rind more software by wording wih the 心丫乙|3口1亡 Strfuvtiy 9 w、' pr-ekrtnces.在弹出的新对话框Add Site中依下图输入并点击 OK按钮Add SiteArch

8、ive-.此时返回上一对话框,选中 Developer Tools选择框。此时返回上一对话框,选中 Developer Tools选择框。此时返回上一对话框,选中 Developer Tools 选择框。一直点击Next直到安装完成此时返回上一对话框,选中 Developer Tools选择框。InstallAvailable SoftwareCheck the items that you wish co irstail.Work with: ADT https:fydl-Sir.google corri/andrQidediBse/TAdd丿Find more software by wo

9、rklng wilh rhe 曲Boftwuru 5戊preferences.typfl Rlier textDe MM IShoiv only the iil&n verstans of avaiMbk software 匸 Hide i( ems ihjt arc al read v installed砂 Group iTerns bv categoryWhat is ulrtidy instille叮孑|丿 Contact dll update sites during install (o find required softwaref Next > C GiMel JF

10、inish一直点击Next直到安装完成Iri stallReview LicensesLicenses most he reviewed before the software can tw Installed. This in<ludes licensee for software required! to complete the install.NameVersion第 Android DDMS_ Android Development Tools0-9,6.v20100- Mylyn Bridge Edlps« IDE3.3.2.V20100疝 1 Mylyn Brid

11、ge Java Development3.3-220100kjjs Mylyn Dt>l dye. Tumm Suppjf t3 3-2 .rZO 100=l> - Myly-n Lonnector: Hu勺工ill赳3.5.2.W2010UMylyn 7ask bst keqLired)3_i.2.v20 丄OUlf± Mylyn Task-Focused Interface (iRLecomme 3.3.2 .V20100=Mylyn WikiText1.2.1.W201001 .License text.Items with licenses.Not*1- jcom

12、mon-1 O 1 Z jar is under the &SD lice rather than rhe APL. You can find a copy of the Lice at htcp:/www 。口 /I ice rises bsd -iiceme.phpjfr*echarf-l D A jar artril jfrearhart- I <1 Q-cwt, are under the LGPL rather Ihan the A PL, Yoy ca find a copy of the LCPL at http: f /Vhww.gnu .

13、org/ licensesold-li匚e:nses/lgpl-2aYou can get hfOUfce evde ror iheie two tDrirporitnli dL Impj and roid .q it. kerne I .org / pu b/jfrccchart L O 9.zip卢II accept the terms of the licence agreementsO * do not accept th电 wrrrii of th« licens. jigre< Back jNext a?(_/K在License对话框的时候会弹出一个对话框警告正在安

14、装未签名的软件,直接点击0K继续。之后重启 Eclipse。在 Eclipse 中配置 An droid Developme nt Kit (ADK) 此时需要在 Eclipse 配置 一下 ADK 指向 An droid SDK。点击 Ec在License对话框的时候会弹出一个对话框警告正在安装未签名的软件,直接点击OK继续uity WarningWarningj You insrelling software contains unsigned conRnt. The authentkity or validity oHhii software cannot be estdblishcd.

15、 Do you want to continue with the iinstallJtiDn?OKDetails ?>A.JCartel之后重启Eclipse 。在 Eclipse 中配置 An droid Developme nt Kit (ADK)此时需要在Eclipse配置一下 ADK指向An droid SDK。点击Eclipse菜单项并选择 Prefere nces。在子菜单中选择 An droid 。之后弹出以下对话框,提示 SDK没有安装。於刖! q別n诃g 1&TUU bnuD*pna 评旧 H«|bVuqioiqOVuqciq Juq ij nbme

16、 iqociou 0ioi< ?dk P勺疋 do:do £0 乂甸ejuixt >yuqLDiq JDK r°C9!ou上Sldec MVUNMLiqQLlgqoiLii |vb| f«ft|VW. _lr右 i!丼丄廿皿创r p-G|Om 丘 ouiA kC|O?q«q ouce Kon pii .tftib ok.ok,2DK rociou::yuqLOiq Li-GkGiJCG?劇o归应*鼻倆!叩獲*竹 A?|n» ujnu pcbL66L6UC6£依下图选择指向SDK的路径:更新环境变量 设置环境变量会为我们以后的开发省去不少麻烦。在Finder中找到你的根目录并打开.bash_profile文件(隐藏文件)。打开文件,并追加以下内容。注意,你需要根据自己的 路径替换 /Users/JOHN/Android/更新环境变量设置环境变量会为我们以后的开发省去不少麻烦。在Finder中找到你的根目录并打开.bash_profile文件(隐藏文件)。打开文件,并追加以下内容。注意,你需要根据自己的路径替换 /User

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论