android環境配置步驟:http://developer.android.com/sdk/installing.html(官方文檔,我就不翻譯了)
中間遇到的問題:
1.myelipse兼容性不好,尤其我用的是7.0,建議新手使用推薦的elipse classical
2.運行helloworld程序時提示錯誤:
[2012-05-31 21:13:58 - HelloAndorid] The connection to adb is down, and a severe error has occured.
[2012-05-31 21:13:58 - HelloAndorid] You must restart adb and Eclipse.
[2012-05-31 21:13:58 - HelloAndorid] Please ensure that adb is correctly located at 'C:\android-sdk\platform-tools\adb.exe' and can be executed.
Try below steps:
- Close the Eclipse if running
- Go to the Android SDK tools directory in Command Prompt
- type
adb kill-server
- then type
adb start-server
- No error message is thrown while starting ADB server, then adb is started successfully.
- Now you can start Eclipse again.
it worked for me this way, Eclipse should be closed before issuing these commands.
運行第四步時命令行提示ADB server didn't ACK
有人的解決方案說:要關閉任務管理其中的adb.exe,我裏面壓根沒有。後來經過種種嘗試,想到我安裝了豆瓣夾,而網上有的方案和這個有關係(我並沒有運行,只是安裝了)
於是我刪掉了豆瓣夾,於是,問題解決!!!