心血來潮,搭建了下android環境
step1: 下載IDE eclipse-jee-juno-SR1-win32【
http://www.eclipse.org/downloads/】
step2:下載JDK安裝器 【
http://developer.android.com/tools/sdk/eclipse-adt.html】
step3:安裝ADT
help->install new software-> 【
http://dl-ssl.google.com/android/eclipse/】
其中安裝ADT時報了:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Native Development Tools 21.0.0.v201210310015-519525 (com.android.ide.eclipse.ndk.feature.group 21.0.0.v201210310015-519525)
Missing requirement: Android Native Development Tools 21.0.0.v201210310015-519525 (com.android.ide.eclipse.ndk.feature.group 21.0.0.v201210310015-519525) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found解決辦法就是 取消選擇Android Native Development Tools 21.0.0.v201210310015-519525 的安裝,具體原因是這個是本地開發代碼用上C、C++之類,基本上用不著。
如果想解決是需要通過下載eclipse插件。故直接取消
step4:安裝好jdk,下載多版本的jdk
至此,基本上完成了基本工作。
當中出現的小問題就是在toolbar 里面沒有顯示android圖標,顯示方式是
window->customize Perspective-> Tool Bar visbility -->選定Android sdk and avd manager即可;
所有方法來自互聯網。