美文网首页
报错:AGPBI: {"kind":"error","text"

报错:AGPBI: {"kind":"error","text"

作者: 蒙多喝醉了 | 来源:发表于2020-07-23 21:33 被阅读0次

    错误日志:

    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标签中,有 “ ' ”之类的符号,需要加 “ \ ”,如果已经加了,发现还有这个问题,就再找找,因为“ ' ”之类的符号多的话,他可能不报错,但是运行时就报错了,比较坑,留博客记录此番踩坑。

    相关文章

      网友评论

          本文标题:报错:AGPBI: {"kind":"error","text"

          本文链接:https://www.haomeiwen.com/subject/uzrklktx.html