環境為eclipse3.6.1,jdk1.6
從android2.0開始,Android SDK被分為兩部分:SDK啟動程序軟件包和SDK組件。
1,下載SDK啟動程序軟件包
?? 從http://androidappdocs.appspot.com/sdk/index.html下載android-sdk_r08-windows.zip,解壓到E:\android-sdk-windows,然后把"E:\android-sdk-windows\tools;"加到環境變量的path里。
2,下載SDK組件
?? 可以在線安裝(點擊SDK Manager.exe),也可以手動安裝。
?? 下載android-2.1_r01-windows.zip,解壓到E:\android-sdk-windows\platforms\android-2.1_r01-windows,這樣就手動安裝了android-2.1_r01。
3,安裝GEF,eclipse->Help->install new software->add按鈕,輸入名字gef,輸入地址
http://download.eclipse.org/tools/gef/updates/releases,點擊ok,然后選擇與當前eclipse版本相適應的gef,我把二級目錄全部選中并安裝了。
?? 如果不安裝GET,在接下來的第4步安裝時會報“
requires 'org.eclipse.gef 0.0.0' but it could not be found”錯誤。
4,安裝ADT。我使用的是離線安裝的方式。
?? 下載ADT-8.0.1.zip,下載地址為http://androidappdocs.appspot.com。
?? 安裝步驟:eclipse->Help->install new software->add->Archive選擇ADT-8.0.1.zip->OK
5, 使用SDK Manager.exe在線安裝“Android SDK Platform-tools, revision 1”。不裝在使用ADT時會報“SDK Platform Tools components is missing”。
6,在eclipse->Window->Preferences->Android中配置SDK路徑為E:\android-sdk-windows
7,安裝AVD(Android Virtual Devices)
?? 打開"SDK和AVD管理器",點擊Virtual devices,然后在右邊點擊new按鈕,輸入名字,選擇一個Target,然后填寫SD Card的大小為64Mib,其他均為默認。
8,把SDK
的tools和
platform-tools目錄都要加到P
ATH
。
9,新建一個android項目,注意把Min SDK Version設為7。項目建好后,可右擊項目名然后點擊Run As->Android Application,第一次運行需等待幾分鐘。
注:
1,E:\android-sdk-windows下的SDK Manager.exe可打開"SDK和AVD管理器",eclipse->window下拉菜單里的鏈接也可以打開,但比前者要少Settings設置項。
2,If you are developing in Eclipse with ADT,
note that SDK Tools r8 is designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we highly recommend updating your ADT Plugin to 8.0.0.
Also
note that SDK Tools r8 requires a new SDK component called Platform-tools. The new Platform-tools component lets all SDK platforms (Android 2.1, Android 2.2, and so on) use the same (latest) version of build tools such as adb, aapt, aidl, and dx. To download the Platform-tools component, use the Android SDK Manager, as described in Adding SDK Components
Upgrading from SDK Tools r7:
If you are upgrading to SDK Tools r8 from an earlier version, note that the the default installed location for the adb tool has changed from <SDK>/tools/adb to <SDK>/platform-tools/adb. This means that you should add the new location to your PATH and modify any custom build scripts to reference the new location. Copying the adb executable from the new location to the old is not recommended, since subsequent updates to the SDK Tools will delete the file.
3,感覺自己的安裝步驟有點亂,下次改一下:先裝SDK啟動程序軟件包即SDK tools,通過SDK tools安裝android-2.1_r01和Android SDK Platform-tools,設置環境變量,然后才安裝ADT。
4,權威的安裝步驟見http://androidappdocs.appspot.com/sdk/installing.html
5, 由于模擬器每次啟動都比較慢,我們可以在打開模擬器之后不要再關閉,這樣每次運行Android應用 ADT就會自動使用這個模擬器,這樣就不用每次都啟動了
安裝相關:
http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html
http://emck.avaw.com/?p=62
http://shizukyo.javaeye.com/blog/254124
http://www.hiapk.com/bbs/thread-123617-1-1.html
http://www.eoeandroid.com/thread-14174-1-1.html
http://zhengtao620.blog.163.com/blog/static/1621465472010105111530403/
http://apps.hi.baidu.com/share/detail/15798968
?
在Google Android平臺上運行Berkeley DB Java EditionDroidDraw 是一個基于Java Swing的
Android界面設計器,我們可以通過它來生成復雜的
Android Layout XML文件