2012-01-10 2 views
0

저는 C++ 경험이 있지만 Android 용 Eclipse에서 Java로 시작합니다. 나는 이클립스 튜토리얼을 통해 갈 문제가있다. 다음과 같은 오류가 발생합니다. XML 구문 분석 오류 : 형식이 올바르지 않습니다 (유효하지 않은 토큰)

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 


<TextView <== HERE I GET THE error: Error parsing XML: not well-formed (invalid token) 
    android:id="@+id/label" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Type here:"> 
<EditText 
    android:id="@+id/entry" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:background="@android:drawable/editbox_background" 
    android:layout_below="@id/label"> 
<Button 
    android:id="@+id/ok" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_below="@id/entry" 
    android:layout_alignParentRight="true" 
    android:layout_marginLeft="10dip" 
    android:text="OK"> 
<Button 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_toLeftOf="@id/ok" 
    android:layout_alignTop="@id/ok" 
    android:text="Cancel"> 

나는 내 코드의 문제는,

답변

2

종료 태그는 모든 요소 누락되어 주셔서 감사합니다 도와주세요 어떤 생각이 없습니다.

관련 문제