今天叫别人将string.xml文件中的中文翻译成英文,然后运行android studio后,发现报error: Apostrophe not preceded by \错误,发现出错原因是我们在string.xml文件中单引号之前没有加反斜杠转义。比如
You don't have any followers!这句话要改成You don\'t have any followers!这种,然后再运行,就可以了。
android studio中报error: Apostrophe not preceded by \错误
最新推荐文章于 2018-03-28 22:07:53 发布