Android Studio xml编译error: Apostrophe not preceded by \
问题:
Resource Path Location Type error: Apostrophe not preceded by \ (in Search' Titles) strings.xml
原因:
在string.xml中使用了转义字符
解决办法:
在编译出错提示中找到相关的string.xml文档,在string标签中的字符串含有单引号(‘)前面,加上反斜杠(\)转义即可。
例如