Android开发遇到错误总结

来源:互联网 发布:js动态增加删除行 编辑:程序博客网 时间:2024/05/18 02:33

1、Apostrophe not preceded by \

eclipse引入之前项目中的android项目,资源文件values中报特殊字符没有被转义错误,错误信息如下:

error: Apostrophe not preceded by \ (in Shanghai is China’s largest cities, the most important

economic and financial center, transportation hub and foreign trade port, is also China\’s

science and technology, culture and education as an important base. The city\’s land area is

6340.5 square kilometers.)

 

解决办法是,把<string name=“shanghai”>Shanghai is China’s largest cities 中的 China’s 的进行转义既 China\’s 。


2、