問題提示:
執行string.xml自動生成strings.out.xml而出現錯誤
執行main.xml 自動生成main.out.xml而出現錯誤
關鍵字搜尋:
strings.out.xml
main.out.xml
android
問題原因:
執行文件為 xml檔,Eclipse會調成xsl執行,所以出現錯誤
解決方式:
1. 不要在 Project/res/values/string.xml 下執行,而在 Project/src/main.java 下執行則解決
2. Project -> Clean
3. Windows -> Preference -> Run/Debug -> Always launch the previously launched application 打勾
參考網址:
http://hi.baidu.com/haijiaoshu/blog/item/eb876a03b3032e85d43f7caa.html
http://www.cnblogs.com/chunhui588/archive/2010/06/26/Android-debug-main-out-xml-parsing-error.html
http://missesmister.blogspot.com/2011/04/android-mainoutxml.html
沒有留言:
張貼留言