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 :)

posted @ 2015-06-28 19:16  majinz  阅读(195)  评论(0编辑  收藏  举报