0
,而建设一个项目,我不断收到此错误:错误解析XML:没有很好地形成(标记无效),而XML仅仅是完美的罚款
AGPBI: {"kind":"error","text":"Error parsing XML: not well-formed (invalid token)","sources":[{"file":"D:\\MyApp\\app\\src\\main\\res\\layout\\login_help.xml","position":{"startLine":0}}],"original":"","tool":"AAPT"}
D:\MyApp\app\src\main\res\layout\login_help.xml Error:(1) Error parsing XML: not well-formed (invalid token)
我试图寻找XML错误,但我只是找不到任何。任何答案,我就找到计算器并没有帮助:(。我怎样才能解决这个废话错误?
login_help.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_help_descriptie_1"
android:id="@+id/textView3"
android:layout_gravity="center_horizontal"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_help_descriptie_2"
android:id="@+id/textView4"
android:layout_gravity="center_horizontal"
android:layout_below="@+id/textView3"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="10dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_help_descriptie_3"
android:id="@+id/textView5"
android:layout_gravity="center_horizontal"
android:layout_below="@+id/textView4"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="10dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_help_descriptie_4"
android:layout_below="@+id/textView5"
android:layout_gravity="center_horizontal"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</LinearLayout>
人有类似悬而未决question
我认为,问题可能出现在文档开头的一些不可打印的符号上,尝试将该XML复制到另一个UTF-8编码的文件中 – DmitryKanunnikoff
呃..我搜索了但是找不到它。早上,和我从学校回来后就不再工作了 – Jason