1.創建虛擬設備成功,但無法啓動,出現如下錯誤
ERROR: no search paths found in this AVD's configuration. Weird, the AVD's config.ini file is malformed. Try re-creating it.
解決方法:主要是avd的路徑名中含有中文,默認是創建在c:/Users/我的用戶名/.android下,要改變默認位置,創建名爲ANDROID_SDK_HOME的環境變量,指向一個不含中文的位置即可
2. Error generating final archive: null 錯誤解決
配置好開發環境後,新建Android項目,提示如上錯誤,可以將debug.KEYSTORE刪除或者手動新建一個新的
3.包名不正確
Android裏包名要2個標識符,如com.leo,僅僅使用leo是不行的
4.hello world寫在哪?
在新建的com.leo包中的文件繼承了Activity類,先寫在這裏,若不寫的話,輸出的是res/values/string.xml裏的內容,我的是Hello World, tttt!
下面是運行的效果
新手上路,有什麼說的不對的歡迎拍磚。
有用的參考:
http://blog.csdn.net/tomey21/archive/2009/04/24/4107852.aspx
http://news.congci.com/news/windows7-android-eclipse-adt
http://bbs.ldci.com.cn/read.php?tid-59.html