当前位置:首页 > 技术心得 > 正文内容

Android Studio xml编译error: Apostrophe not preceded by \

xjtudll10年前 (2016-11-04)技术心得8990

问题:

Resource Path Location Type error: Apostrophe not preceded by \ (in Search' Titles) strings.xml

原因:

在string.xml中使用了转义字符


解决办法:

在编译出错提示中找到相关的string.xml文档,在string标签中的字符串含有单引号(‘)前面,加上反斜杠(\)转义即可。

例如

image

扫描二维码推送至手机访问。

版权声明:本文由鸟的天空发布,如需转载请注明出处。

本文链接:http://xjtudll.cn/Exp/425/

标签: Android Studio
分享给朋友:

“Android Studio xml编译error: Apostrophe not preceded by \” 的相关文章

Xcode Warning:No rule to process file xxx 解决

Xcode Warning:No rule to process file xxx 解决

在编译程序的时候,Xcode给出了警告:warning: no rule to process file '$(PROJECT_DIR)/xxx.h' of type sourcecode.c.h for architecture armv7。如图所示: 从warning中我们可以看出是某个.h...

万年历星期算法分析

 1、 蔡勒公式  w=(y+[y/4]+[c/4]-2*c+[26*(m+1)/10]+d-1)%7             &...

远程计算机需要网络级别身份验证,而您的计算机不支持该验证

远程计算机需要网络级别身份验证,而您的计算机不支持该验证

问题:使用Win7可以连接服务器的远程桌面,使用XP不行。 服务器是Windows Server 2012 解决办法有两种: 一、修改本地电脑设置 参考资料:https://jingyan.baidu.com/article/380abd0a713f061d91192c63.html 1、点击开始...

SQL Server 数据类型xtype

xtype=34 'image' xtype= 35 'text' xtype=36 'uniqueidentifier' xtype=48 'tinyint' xtype=52 'smallint' xtype=56 'int' xtype=58 's...

金蝶 KFO.Dictionary 怎么写

.Net 调用,以C#为例,调用如下: 1、添加kfo.dll的引用。 2、调用方法 KFO.Dictionary dct=new KFO.Dictionary(); dct.let_value("FInteID",100);...

Android手机Google服务耗电过多

手机:三星I9000 操作系统:Android 2.3.3 (Lida ROM) 现象:电池使用时间很短,经常莫名其妙就没电了。查看电量消耗,60%(甚至更多)为“Google框架服务”占用。 病因: 通过网络搜索,发现是因为曾经禁止了“Google框架服务&rd...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。