错误日志:
AGPBI: {"kind":"error","text":"Android resource compilation failed","sources":[{"file":"/Users/apple/Downloads/GitDemo/MyTimes/app/src/main/res/values-fr-rBE/strings.xml","position":{"startLine":50,"startColumn":4,"startOffset":3082,"endColumn":116,"endOffset":3194}}],"original":"/Users/apple/Downloads/GitDemo/MyTimes/app/src/main/res/values-fr-rBE/strings.xml:51:5-117: AAPT: error: unescaped apostrophe in string\n ","tool":"AAPT"}
解决:string标签中,有 “ ' ”之类的符号,需要加 “ \ ”,如果已经加了,发现还有这个问题,就再找找,因为“ ' ”之类的符号多的话,他可能不报错,但是运行时就报错了,比较坑,留博客记录此番踩坑。
网友评论