Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android XML中的令牌无效_Android_Xml - Fatal编程技术网

android XML中的令牌无效

android XML中的令牌无效,android,xml,Android,Xml,刚刚开始android开发,并尝试在这里创建UI。。但是获取以下内容:/res/layout/main.xml:13:错误:解析xml时出错:格式不正确(无效令牌) 有什么想法吗 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

刚刚开始android开发,并尝试在这里创建UI。。但是获取以下内容:/res/layout/main.xml:13:错误:解析xml时出错:格式不正确(无效令牌)

有什么想法吗

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  >
  <TableLayout android:id="@+id/entryBar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:stretchColumns="1"
    >
    <TableRow
      <EditText android:id="@+id/taskEntry" />
    </TableRow>
    <TableRow
      <Button android:id="@+id/add"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Add"
      />
    </TableRow>
  </TableLayout>
  <ListView android:id="@+id/tasks"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_above="@id/entryBar"
  />
</RelativeLayout>


您的
TableRow
项目没有正确结束,请尝试

<TableRow>
  <EditText android:id="@+id/taskEntry" />
</TableRow>
<TableRow>
  <Button android:id="@+id/add"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Add"
  />
</TableRow>

第一次之后,您错过了一个>