Apostrophe not preceded by \\

来源:互联网 发布:小区信息发布查询软件 编辑:程序博客网 时间:2024/05/19 23:15
  • 问题描述

      在Eclipse编译Android Application时,console错误提示:"Error:Apostrophe not preceded by \ ..."

  • 问题原因

     在string.xml文件中出现了‘ (单引号)。 { <string name="Tvplays"> 《Grey’s Anatomy》</string>}

  • 解决方法

    在单引号前加反斜杠 \  {<string name="Tvplays"> 《Grey\’s Anatomy》</string>}

0 0
原创粉丝点击