[14本经典Android开发教程]-13-Android 开发环境搭建步骤详细图解

所需积分/C币:12 2015-02-02 20:06:48 1.87MB PDF

[14本经典Android开发教程]-13-Android 开发环境搭建步骤详细图解
nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway 鲜系统亚量 变量名①) Path 变量值) bin8 JAVA HOMES%bin:D:与 avale1ips∈ 匚确定匚取消 三、 Android sdi安装 Android sdk可以通过SDK下载器自动下载和配置,适合网络好,下载速 度快的情况下;也可以借助工具下载SDK文件,手工配置,适合网络不是很好, 下载速度慢的情况下 SDK下载器自动下载步骤如下 1.解压缩 android-sdkr08- windows下载器,并双击运行 SDK Manager:exe: O F: \android\android-sdk-windows 回囟 le edit eEk·5sers Address O F:\android\android-sak-windows Size File and Folder Tasks aadd-ons Folder 2011-13011:38 ol Rename this file platforms Folder 2011-1-3011:38 a Move this file O5DK Managerexe 354 KB Application 2010-11-1718:51 Copy this file 目5 DK Readme. txt 1 KB Text Document 2010-11-3019:34 4 Publish this file to the Web E-mail this file Delete this file Other pl a My Documents 号 My Network Places SDK Manager.exe Application Date Modified:2010年11月17 日,18:51 5i2e:353KB 如果你的电脑不支持htts连接会看到如下界面 nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway Android SDK and AVD Manager Virtual Devices SDK Location:口■ Refresh Sources Available Packages InstalledPachFetchinghttps://dl-ssl.googlecom/android/repository/repository.xml About w SDK Platfol SdkpLatfofailedtofetchUrlhttps://dl-ssl.googlecom/androidrepository/repository.xml, DK Platf reason Https Ssl error You might want to force download through Http in the odate All. I 请选择setting的将Forcehttps://..Sourcestobefetchedbyusinghttp:/选 项打勾 Q Android SDK and AVD Manager Virtual Devices stalled pack Available ackages Http Proxy Server Http pRoxy Port orcehttps:..sourcestobefetchedusing/2将tps连探转化为连挨 ASk before restarting ADB Appl 2.勾选你想要安装的 Packages,并点击 Install selected进行安装 nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway Android SDK and AVD Manage tual devices SDK Location: F:android yandroid-sdk-windows Packages available for download About 回源 Android Repository o-M I Android SDK Tools, revision 9 o-Li* Android SDK Platform-bocls, revision 2 b-Me Documentation for Android'Honeycomb' Preview SDK, revision 1 *-Yw SDK Platform Android Honeycomb Preview,revision 1 多区5 DK Platform Android23.1,AP19, revsion2 口审 SDK Platform Android2.2,APIB, revision2 Dw SDK Platform Android 2.1, API 7, revision 2 口中SK叫 atform Android1.5AF!3, revIsIon4 vS Samples for SDK API Honeycomb Preview, revision 1 Samples For SDK API 9, revision 1 □ Samples for SDK SAmples for SDK API7,revision 1 日口 Third party Add-ons veGoogleInc,add-ons(d-ssl.google.com) 回每 Google APIs by Goog'e Inc, Android api9, reyion2 回嚼 Google APIs by Googe Ind, Android API9, revision1 D R Google APIs by Goog'e InC, Android API8, revision 2 口嚼 Google APIs by Googe Inc, Android ApI7, revsion 口嚼60 ogle APIs by Googe Inc, Android ApI4, revision 2 口嚼qo o-ME Google Market Licensing package -D0 Samsung Electronics add-ons(innovator, samsungmoble com) 0.[4 GALAXY Tab by Samsung Electronics,, Android API 8, revision 1 Android SDK Samples for Android API 7, revision 1 Add Add-on Site..Delete Add-on Site M Dsplay updates only Refresh Install Selected 3.确认对话框如下,选择 Accept AⅡl进行下载安装 Choose Packages to Install ackage Description License v SDK Platform Android 2.3, 1, API 9, revision 2[*] Package Description V Samples for SDK API 9, revision 1 Android SDK Platform 2.3.1 r2 V Google APIs by Google Inc. Android API 9, rev, v Google Usb Driver package, revision 4 Dependencies v Google Market Licensing package, revision 1 This package is a dependency for Google APIs by Google Inc., Android API 9, revision 2 Archive Description Size: 75 MiB SHA1: 209F8a7a8b2cb093Fce858b8b55Fed3ba5206773 Site Android Rennsitnry idk-ccl nnnnle romY REject ⊙ Accept All [I Something depends on this package 匚nt[ Cancel 4.则 Android sdk下载器进入下载安装的过程 nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway Installing Archives 区 Downloading SDK Platform Android 2.3, 1, API 9, revision 2(1%, 356 KIB s, 3 minutes lef Cancel Downloading SDK Platform Android 2.3, 1, API 9, revision 2 5.根据你网速的情况,下载安装的时间或长或短,请耐心等待。 手动下载步骤如下: 通过分析 Android下载器的 htp/d- ssl. google. com/ android/repository/repository.Xm内容,可以得到如 下下载列表(以 Windows环境为例) http://dl-ssi.google.com/android/repository/android-1.5r04-windows.zip http://dl-ssl.googlecom/android/repository/android-1.6r03-windows.zip http:/di-sslGoogle.com/android/repository/android-2.0r01-windows.zip http://di-ssl.google.com/android/repository/android-2.0.1ro1-windows.zip http://di-ssl.googlecom/android/repository/android-2.1r02-windows.zip http:/di-ssi.googlecon/android/repository/android-2.2r02-windows.zip http://dl-ssi.googlc.com/android/repository/android-2.3.1ro2-linux.zip http://dl-ssl.googlecom/android/repository/android-3.0prerol-Linux.zip http://dl-ssl.google.com/android/repository/platform-toolsro2-windows.zip http://dl-ssi.googlecom/android/repository/toolsr09-windows.zip http:/di-ssl.googlecom/android/repository/docs-honeycombprerol-linux.zip http://di-ssi.google.com/android/repository/samples-honeycombprero1-linux.zip http://dl-ssl.googlecom/android/repository/samples-2.1rol-linux.zip http://dl-ssl.googlecom/android/repository/samples 6-2.2 T0l-linux zip http://dl-ssi.googlecom/android/repository/samples-2.3ro1-linux.zip 2.请使用下载工具下载到本地,并按如下映射关系解压缩到SDK下载器所 在目录,映射关系如下: android -1.5 ro4-windows zip platforms \android-3 android-1.6 ro3-windows zip latforms android-4 android-20 ro1-windows zip platforms \android -5 android-2.0. 1 r01-windows zip platforms android-6 nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway android-2.1 r02-Windows zip platforms android -7 android-2.2 rO2-windows zip platforms \ android-8 android-2.3. 1 rO2-linux zip platforms \android-9 android-30 pre ro1-linux zip platforms android-10 platform-tools rO2-Windows zip platforms-tools tools ro9-windows Zip tools docs-Honeycomb pre ro1-Iinux zip doc samples-Honeycomb_pre_ro1-linux zip samples \ android-10 samples-2.1 r01-linux zip samples \android-7 samples-2.2 r01-linux zip samples \android samples-2.3 r01-linux zip samples \android-g 3.如果要安装 google api,请分析下图中的地址: htt:/d-sslgooglc.com/android/repository/addon.xm1下载自己需要的 Packages进行解压,方法同1、2 Android SDK and AVD Manager 回囟 Virtual devices Installed packages SDK Location: F: android\ android-sdk-windows Available packages Packages available for download Settings About 日回 Android Repository a I Android SDK Tools, revision 9 回帝 5DK PlatForm Android231,49 revisions vision /vision .-ME Documentation for Android'Honeycomb' Preview SDK 回命5 DK Platform Android Honeycomb Preview, 区中 SDK PlatForm Android22,AlB, revision2 回5DK叫 Form Android21,AFI7, revision2 回带5 DK Platform Android1.6,AP14, revision3 由回中5Dk叫 atform Android15,API3, revision4 o-M Samples for SDK API Honeycomb Preview, revision 1 M Samples for SDK API9, revision 1 6 Samples for SDK API 8, revisio o-M Samples for SDK API 7, revision 1 口 Third party Add-ons 口噜 Google APIs by Google Inc, Android AF9 revision2 IF Google APIs by Google InC. Android API 9, revision 1 o[# Google APIs by Google Inc, Android API 8, revision 2 +-["E Google APIs by Google Inc., Android API 7, revision 1 -D Google APIs by Google Inc, Android API 4, revision 2 F Google APIs by Google Inc,, Android API 3, revision 3 口 Google Usb Driver De Google Market Licensing package, revision 1 o-0U Samsung Electronics add-ons(innovator, samsungmobile, com) +[* GALAXY Tab by Samsung Electronics, Android API8, revision 1 Description comlandroidPrepository jadd don. xml lAdd Add-on Site.. Delete Add-on Site.. Display updates only Refresh Install Selected 下载列表为: http://dl-ssl.googlecom/android/repository/googleapis-3-r03.zip http://di-ssI.googlecom/android/repository/googleapis-4ro2.zip nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway http://di-ssL.googlecom/android/repository/googleapis-5ro1.zip http://dl-ssi.googlecom/android/repository/googleapis-6rol.zip http://dl-ssl.google.com/android/repository/googleapis-7rol.zip http://dl-ssi.googlecom/android/repositorygoogleapis-8ro2.zip http://di-ssl.google.com/android/repository/googleapis-9r02.zip http:/di-ssi.google.com/android/repository/marketlicensing-ro1.zip http://dl-ssl.googlecom/android/repository/usbdriverr04-windows.zip 4.映射关系为: google_ apis-3-r03 Zip add-ons\addon google apis google inc 3 google apis-4 rO2Zip add-ons \addon google apis google inc 4 oogle apis -5 r01 ndd-onsladdon google apis google inc 5 google apiS-6 ro1zip add-ons\addon google apis google inc google apis-7 ro1zip add-ons\addon google apis google inc 7 google apis-8「02.zi add-ons addon google apis google inc 8 google apis-9_ ro2.Zip add-ons addon google_ apis google inc 9 market licensing-ro1Zi google-market licensing usb_driver_ro4-windows zip usb_driver 5.具体的目录结构如下图: nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway Size Type Date Modified o android-sdk-windows laadd-ons Folder 2011-1-3014:47 a0add-ons Folder 2011-1-3015:02 +0 addon google apis google_ inc_3 Lgoogle-market licensing Folder 2011-1-3015:05 +0 addon google_ apis google inc_ 4 platforms Folder 2011-1-3015:06 +a addon _google_apis google_inc_5 orm-tO Folder 2011-1-3011:51 l addon google apis google inc_6 Folder 2011-1-3014:49 l addon google apis google inc_ 7 atemp Folder 2011-1-3015:05 c addon google apis google inc 8 Folder 011-13014:47 +0 addon google apis google inc 9 Dusb driver Folder 2010-12-620:47 4 docs SDK Manager, exe 54 KB Application 2010-11-1718:51 t o google-market_licensing 自 SDK Readme. txt 1 KB Text document 2010-11-3019: 34 彐paf +0 android-3 droid-4 android-5 t口 android-6 ± android-7 +0 android-8 a android-9 口 Images +0 skin C android-10 口 samples android-7 + android-1 6.解压完成后启动一下SDK下载器,检查是否安装成功,如下图 9 nopainnogainnogavin博客同步更新至:htp:/blog.sina.com.cn/deabowayhttp:/ologcsdn.net/deaboway Android SDK and AVD Manager 包回囟 Virtual devices Installed packages SDK Location: F: android android-sdk-windows Installed packages Settings About I Android SDK Tools, revision 9 x Android SDK PlatForm-tools, revision 2 a Documentation for Android Honeycomb'Preview SDK, revision 1 T SDK Platform Android 2.3.1, API 9, revision 2 SDK PlatForm Android 2.2, API 8, revision 2 SDK Platform Android 2. 1-update1, API 7, revision 2 H SDK Platform Android 2.0.1, API 6, revision 1 i SDK Platform Android 2.0, API 5, revision 1 w SDK PlatForm Android 1. 6, API 4, revision 3 SDK Platform Android 1.5, API 3, revision 4 sAMples for SDK API Honeycomb Preview, revision 1 Samples for SDK API 9, revision 1 Samples for SDK API8, revision 1 AS Samples for SDK API7, revision 1 #4 Google APIs by Google Inc, Android API 9, revision 2 F Google APIs by Google Inc. Android API 8, revision 2 # Google APIs by Google InC, Android API 7, revision 1 FL Google APIs by Google InC, Android API 6, revision 1 FL Google APIs by Google InC, Android API 5, revision 1 F Google APIs by Google Inc. Android API 4, revision 2 F. Google APIs by Google Inc., Android API 3, revision 3 A Usb Driver package, revision 4 ea Google Market Licensing package, revision 1 Description Delete efresh 注:由天小生在写这篇文堂的的, Android例y出了 Android SDK Platform oneycomb Previe, revision1,但是机没有把 android4-3.0per01-1mx,i放在 ht:.5. google. com/android/repository/ android3.0per0 d-linux.zip,所以暂时 无法载安装这个版本的 Android sdk,但不影你SDK使用。请各位我安 装 四、 Eclipse集成开发环境(IDE)搭建 现在廾始 Eclipse ide及 Android eclipse plugin的安装和配置,这里使用的 Eclipse版本为, eclipse- java-helios-SR1-win32.zip,请自行到 Eclipse官方网站 (htt: eclipse. org)上下载自己喜欢的版本,建议34以上版本 我们使川的 Android Eclipse Plugin是ADT: Android Development Tools 同 Android sdk一样,分为在线安装和手动安装两种方式 在线安装步骤如下 1.打开 eclipse,选择菜单:Help-> install New software.

...展开详情

评论 下载该资源后可以进行评论 4

atkfc 可以用,不错,感谢分享。
2018-06-29
回复
MyCrooner 真实有效。可以使用
2018-03-21
回复
worryabout 这个,我也不知道为什么要下这个
2016-06-08
回复
freefly_jin 资源介绍真实有效。可以使用。
2016-06-04
回复
img
CLeopard
  • 签到新秀

    累计签到获取,不积跬步,无以至千里,继续坚持!
  • 分享王者

    成功上传51个资源即可获取

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源