实际开发中,我们会在String资源文件写的时候,会有这样的情况发生:how & what are you ?

当遇到这样的情况的时候,特别是遇到"&",资源会报错。The entity name must immediately follow the '&' in the entity 

reference.

那如何解决呢?

<string name="tips">how <![CDATA[&]]> what are you</string>

这样书写后,就不会报错了。

更多相关文章

  1. You need to use a Theme.AppCompat theme (or descendant) with
  2. Android之Resource介绍和使用
  3. Android(安卓)资源目录的相关知识
  4. Android(安卓)OkHttp, 一行代码 OkHttp提升请求稳定性
  5. Android(安卓)打包, 不同渠道使用 不同的资源文件
  6. android中图形图像处理之drawable用法分析
  7. android重试执行
  8. android 指定打包资源文件的方法
  9. Android(安卓)Studio报错 程序包android.support.annotation不存

随机推荐

  1. 安卓基础知识总结
  2. 最新Android(安卓)Studio更换应用图标方
  3. Android(安卓)Diaolog与AlertDialog用法
  4. android webview 软键盘覆盖 输入框的 问
  5. Android(安卓)icon适配mipmap
  6. android注解使用详解(图文)
  7. ubuntu android studio 打不开windows a
  8. 关于 Android(安卓)下的自动化测试
  9. android samplerExternalOES 纹理
  10. Android项目总结5