andriod 开发记录apidemos 错误解决
android sdk 里面有simple 文件夾里面有對應的demo ?但是拿出來esplise運行報錯
解決方案如下
右鍵錯誤代碼goto,給對應錯誤的單引號前加 \
原文http://stackoverflow.com/questions/4298155/compiling-and-running-apidemos
| 5down voteaccepted | I just had the same thing, and found that buried in the massive list of errors, there were some xml parsing errors for strings.xml. There are 4 unescaped single quotes in the text which eclipse doesn't like. The problem strings are "I'm off!" "I'm on!", and "you'll" and "you're" in the big block of text starting "The Android platform is a software stack...". If you escape these by putting \ in front of each apostrophe, all the errors magically disappear :) |
轉載于:https://www.cnblogs.com/majin/p/4605968.html
總結
以上是生活随笔為你收集整理的andriod 开发记录apidemos 错误解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在Eclipse中编写servlet时出
- 下一篇: Linux6.4的FTP参数