error: Error parsing XML: not well-formed (invalid token)求解决
孟小子 2015-02-08 10:36:24 新建的HelloWorld项目,没有R.java文件,Layout目录下的文件报错
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout 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"
tools:context="${relativePackage}.${activityClass}" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />//此行报错
</RelativeLayout>
在网上查了半天,试过各种方法,
比如:鼠标右键选择Source然后再选Format
比如:
<TextView
。。。
/>
改成
<TextView>
。。。
</TextView>
都没有解决,求网友讨论