책에서 제공하는 코드

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView 
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:text="정렬 테스트"
    android:textSize="30sp"
    android:textColor="#00ff00"
    />
</LinearLayout>

 

 

이클립스를 이용하여 안드로이드 2.3.1 버젼을 만들경우 생성되는 코드

<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"

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="정렬 테스트"
        android:textsize="30pt"
        android:textColor="#00ff00"
    />
</RelativeLayout>

 

위의 라이너 레이아웃은 안드로이드 정복이라는 책의 예제에서 사용하는 코드이며

아래는 이클립스를 통해 새로운 안드로이드 프로젝트를 생성했을 때 나오는 코드입니다.

 

위와 같은 "정렬 테스트"라는 문자를 출력하는 경우에도 위의 코드는 에러가 안나지만

아래의 코드는 에러가 나옵니다 ㅠㅠ

 

[2012-08-06 22:35:05 - centerTest] Error in an XML file: aborting build.

 

위와 같은 에러 메세지가 나오는데 위 두개가 어떠한 차이점이 있나요