Google 發布了android 其實就是Gphone的開發環境
現在我們就開始進行安裝及配置開發環境,并且開發第一個HelloWorld
第一步: 安裝sdk 首先去 http://code.google.com/android/download.html下載 sdk
第二步: 解壓縮 下載的 sdk 到你指定的目錄, 我是解壓縮到 "d:\" 下
這時你在d盤下看到 "D:\android_sdk_windows_m3-rc20a"
第三步: 配置環境: 點擊"我的電腦"右鍵 --> "屬性" --> "高級" -->"環境變量" -->
"系統變量" --> 在"path"中增加 "D:\android_sdk_windows_m3-rc20a\tools "
ok , 在命令行中輸入 " aapt" 能夠看見 :
Android Asset Packaging Tool
Usage:
aapt l[ist] [-v] file.{zip,jar,apk}
List contents of Zip-compatible archive.
aapt p[ackage] [-c][-f][-g][-s][-u][-m][-v][-x][-M AndroidManifest.xml] \
[-l locale1[,locale2,...]] [-d device1[,device2,...]] \
[-I base-package [-I base-package ...]] \
[-A asset-source-dir] [-P public-definitions-file] \
[-S resource-source-dir] \
file.{zip,jar,apk} [raw-files-dir [raw-files-dir] ...]
Create or update the named Zip-compatible archive. All files in raw-files-di
r
will be added to the archive, as will selected directories in asset-root-dir
(which should contain a 'default' directory and some locale-specific
directories). The named locales and vendors will be added, all others
will be excluded.
aapt c[ompile] [-m][-v][-x] [-M AndroidManifest.xml] [-J R-file-dir] \
現在環境配置好了.
第四步:下載eclipse插件:
打開eclipse "help"--> "sofware updates" -->find and Install
選擇: "search for new feature to install " 點擊 "next"
點擊: New Remote site
在打開的對話框中url 中輸入 : https://dl-ssl.google.com/android/eclipse/
點擊 "ok"
第五步: 配置eclipse :
選擇: window -->Preferences 選擇--> android
sdk location 中選擇你解壓縮的 android sdk 的目錄
點擊: ok
第六步: 開發第一個HelloWorld