原创 Error: String types not allowed (at 'layout_gravity' with value 'bottom/center_horizontal').

Error: String types not allowed (at 'layout_gravity' with value 'bottom/center_horizontal'). 這裏錯誤意爲:字符類型不符,也就是說gravity後

原创 Open quote is expected for attribute "name" associated with an element type "item".

最近寫安卓代碼的時候Eclipse報錯:Open quote is expected for attribute "name" associated with an element type "item". 錯誤代碼:<style nam

原创 error:Invalid start tag transition

剛剛寫程序的時候,寫了個xml文件,裏面是放圖片的,結果eclipse報錯了:error:Invalid start tag transition 然後發現原來是xml文件放錯了位置,應該放在drawable文件夾下的,我放在了layou

原创 eclipse屬性配置(背景色字體等)文件的導入導出方法

試了eclipse的導入導出屬性方法沒用,然後看到了這裏寫的第二種方法,成功導入了屬性文件,分享給大家 原文地址:http://blog.csdn.net/huanghui167/article/details/8115847 ecl

原创 eclipse出現configure build path的錯誤

導入安卓項目到eclipse裏時項目出現錯誤,在某類的首行包名處有紅叉,鼠標移過去出現“configure build path”提示 這是因爲項目裏缺少相關的庫文件或jar包,查看項目是否缺少安卓系統版本環境(例如Android 4.4

原创 res\drawable-hdpi\Flashlight.xml: Invalid file name: must contain only [a-z0-9_.]

寫程序的時候eclipse又報錯了:res\drawable-hdpi\Flashlight.xml: Invalid file name: must contain only [a-z0-9_.] 查了