错误:错误解析XML:没有良好的(标记无效)...? [英] error: Error parsing XML: not well-formed (invalid token) ...?
本文介绍了错误:错误解析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="http://schemas.android.com/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:没有良好的(标记无效)...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文