错误:错误解析XML:没有良好的(标记无效)...?

编程入门 行业动态 更新时间:2024-10-26 20:25:41
本文介绍了错误:错误解析XML:没有良好的(标记无效)...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我工作的一个应用程序,其中我有下面的XML。但是当我尝试清洁/建立我的项目则出现下列错误:

I am working on an application, in which i have a following xml. but when i try to clean/build my project the following error occurs:

的错误:错误解析XML:没有良好的(标记无效)

"error: Error parsing XML: not well-formed (invalid token)"

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="schemas.android/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello"; /> </LinearLayout>

这是什么意味着什么?感谢您的帮助提前.. :-)

What does it possibly mean ? Thanks for help in advance..:-)

推荐答案

这意味着在你的XML文件中的编译错误,而这不应该存在:拼写错误/虚假字符/不正确的命名空间

It means there is a compilation error in your XML file, something that shouldn't be there: a spelling mistake/a spurious character/an incorrect namespace.

您的问题是你有一个分号,这行后不应该出现的:

Your issue is you've got a semicolon that shouldn't be there after this line:

android:text="@string/hello";

更多推荐

错误:错误解析XML:没有良好的(标记无效)...?

本文发布于:2023-05-27 02:45:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/275024.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file &#039;D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!