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

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

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

问题:

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 \” 的相关文章

验证datatable是否被修改的问题

问题: 举个例子: 会员管理的修改  我先将会员详细信息存在一个datatable  User里面   然后 界面上的控件与该datatable一一绑定, 在用户保存的时候  验证该datatable是否被修改 来判断是否需要操作数据库 &...

把存储过程结果集插入临时表

--使用sp_helpserver 显示可用的服务器。  exec sp_helpserver  --打开服务器的"data access"属性  exec sp_serveroption '服务器名',...

最流行网络英文潮语集合

btw(by the way):这个大多数人都会用,就是“顺便再说一句”的意思。g2g(got to go):要走了。原句是I've got to go。ttyl(talk to you later):下次再说。brb(be right back):很快回来。也就是I'll...

PlatformIO串口无输出

PlatformIO串口无输出

问题:同样的串口打印代码,在Arduino IDE里可以正常输出,但是在PlatformIO里看不到任何输出硬件:ESP32-S3 Camera解决方法:This is because DTR and RTS both are connected to the RESET pin and GPIO...

IOS textField怎样设置只能输入英文字母或者数字,不能输入汉字

参考资料: http://segmentfault.com/q/1010000002705645/a-1020000002708433 //设置键盘类型 self.textField.keyboardType = UIKeyboardTypeASCIICapable; define kAlph...

金蝶 老单增加工具栏按钮(Raise Event)

Public Sub AddToolButton(name As String, Caption As String, Description As String, Optional imagefilename As String = '', Optional iOrder As Long = 47...

发表评论

访客

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