【Android】Eclipse上string.xml发生Found text“ ” where item tag is expected错误,如何解决
来源:互联网 发布:sql一行多列 sum 求和 编辑:程序博客网 时间:2024/05/22 01:52
作者:Yogi
前言:因为项目需要增加对中文繁体的支持,所以利用谷歌翻译,将项目原有的中文简体翻译成中文繁体,但是直接将谷歌翻译后的内容拷贝到string.xml中,遇到问题:Found text“ ” where item tag is expected导致apk无法正常编译。此篇文章告诉你如何解决此问题。
背景
下图表示了我是如何把中文简体变成中文繁体的过程:
在第3步之后,我直接把拷贝到的内容贴到Eclipse中的string.xml中,显示如下图:
你看,这样根本看不出什么问题,觉得一切正常啊,可是Eclipse就是会报这个错。
出错原因
我把拷贝的内容贴到UE编辑器,显示如下图:
看到了吗,有很多问号,但是这些问号在Eclipse中根本不显示,我在UE中把这些问号去掉,修改后,如下图:
再把这些修改后的内容贴到Eclipse中,显示如下图:
这下就好了,一切正常,没有这个错了。
总结
遇到Found text“ ” where item tag is expected这类问题,就把string.xml的内容放到UE编辑器中查看,能够看出出错原因,对应修改即可。
0 0
- 【Android】Eclipse上string.xml发生Found text“ ” where item tag is expected错误,如何解决
- error: Found tag String where item is expected
- android found tag Stirng where item is expected解决办法
- 今天工作的内容found tag String where item is expected
- found tag Stirng where item is expected解决办法
- Invalid nested tag br found, expected closing tag li 错误解决
- Bareword found where operator expected at 错误
- Where is the XML Editor in Eclipse
- client found response content type of text/html charset=utf-8 but expected text/xml
- cvs报XML error at line 1: Start tag expected, '<' not found
- 解决pop3:pop3(某帳號): Error syncing mbox file /var/mail/某帳號: LF not found where expected
- 【SpringMVC】文件上传Expected MultipartHttpServletRequest: is a MultipartResolver错误解决
- 【SpringMVC】文件上传Expected MultipartHttpServletRequest: is a MultipartResolver错误解决
- Client found response content type of ‘multipart/related’, but expected ‘text/xml’.
- Client found response content type of ‘multipart/related’, but expected ‘text/xml’.
- 编译Android,遇到Your version is: /bin/bash: java: command not found.错误的解决
- eclipse Android更新SDK或重新配置adt后出现Error retrieving parent for item: No resource found 错误
- 把github上没提供部分支持库的的项目导入eclipse时发生错误的解决思路
- Javascript apply, call this
- MyBatis学习总结——实现关联表查询
- 第十三周项目—阅读、修改和运行关于交通工具类的程序(2)
- cs231n 卷积神经网络与计算机视觉 2 SVM softmax
- java并发(等待/通知机制)
- 【Android】Eclipse上string.xml发生Found text“ ” where item tag is expected错误,如何解决
- 超强、超详细Redis数据库入门教程
- Node.JS连接数据库
- 条件语句 四元式
- iOS-OC-UITableViewCell分割线自定义
- Innodb锁机制:Next-Key Lock 浅谈
- 多态事例
- 电脑蓝牙连接后串口有传出和传入,如何区别
- 手机传感器