Error:(58) Error parsing XML: not well-formed (invalid token)
来源:互联网 发布:ipad儿童游戏 知乎 编辑:程序博客网 时间:2024/05/23 15:24
使用AndroidStudio,在编辑layout里的视图文件(activity_add_acc.xml)时发生了这个问题,一开始还被它烦恼的好久 .
我的问题:
点击报错,跳到的位置是:
我这的问题应该是在hint里有写”<”、”>”,所以造成编译错误吧,把他们删了就可以,不过,后面还得在看看有其他方式来写入上面两个符号的。
闲话:在查找问题的过程中,我无意看到下面内容,在一位发帖提问该问题,但自己解决了又不分享方法的SB楼主的评论贴里找到以下方法。方法我在AS上试则是没有的,它们应该主要是用在Eclipse,但可参考下。特地写备着,也给有遇到同样问题的朋友。
1、在xml中检查控件是否缺少开头或结尾,dreawable等文件夹中资源命名是否和系统保留字重复而导致building ,clean无法正常!
2、把鼠标箭头移到出错误的layout上,鼠标右键选择Source然后再选Format ,则可解决
3、举个栗子:
<TextView android:id="@+id/operation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" />改成 <TextView> android:id="@+id/operation" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" </TextView>
阅读全文
0 0
- Error:(58) Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token)解决办法
- Error:(65) Error parsing XML: not well-formed (invalid token)
- Error:(37) Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token)
- Error parsing XML: not well-formed (invalid token)
- Error parsing XML- not well-formed (invalid token)
- 布局错误error: Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token) 报错解决
- android开发中error: Error parsing XML: not well-formed (invalid token)
- error: Error parsing XML: not well-formed (invalid token) 的解决办法
- Error parsing XML: not well-formed (invalid token) 报错,找不出原因
- Error parsing XML: not well-formed (invalid token) 报错+R文件消失解决办法
- 关于Error parsing XML: not well-formed (invalid token)的解决方法
- android read xml error: not well-formed (invalid token)
- XML parse error: not well-formed (invalid token)
- XML parse error: not well-formed (invalid token)
- 查询硬盘容量
- Elasticsearch段合并情况
- ES集群服务器CPU负载瞬间飚高分析
- Volley传入请求体不成功的解决方案
- 七、构建镜像,搭建镜像仓库
- Error:(58) Error parsing XML: not well-formed (invalid token)
- 文件流FileStream技术出现的理由漫谈
- Linux系统存储设备的管理与磁盘配额
- linux(2)---校园网开热点
- Vuex的自我理解
- 关于javaEE版的eclipse反编译插件的安装与配置
- 最小生成树——Prim算法、Kruskal算法和Boruvka算法
- Linux系统分区方式修改与分区加密
- Vivado下集成逻辑分析仪ILA入门续