Android 分析XML时出错。似乎找不到无效的标记

Android 分析XML时出错。似乎找不到无效的标记,android,xml,Android,Xml,在这个xml中,我似乎找不到哪里出错了。有人知道我为什么会得到一个无效的令牌错误吗 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pare

在这个xml中,我似乎找不到哪里出错了。有人知道我为什么会得到一个无效的令牌错误吗

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

<EditText android:id="@+id/edit_message"
    android:layout_weight="1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:hint="@string/edit_message">
</EditText>

</LinearLayout>


谢谢大家!

尝试在
线性布局之前添加
标记您是否将
放在末尾?@pelya是的,对不起!它没有缩进到足以在帖子中看到。@MarcoDufal我添加了这一行,如果有帮助的话,它似乎说错误在这一行
android:orientation=“horizontal”