android sdk 里面有simple 文件夹里面有对应的demo 但是拿出来esplise运行报错
解决方案如下
右键错误代码goto,给对应错误的单引号前加 \
原文http://*.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 :) |