Android 元素线性布局不';t没有所需的属性布局\u高度

Android 元素线性布局不';t没有所需的属性布局\u高度,android,android-layout,Android,Android Layout,每个文本视图和按钮以及LinearLayout标记 'layout_height' attribute should be defined 'layout_width' attribute should be defined 这是我的活动_main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/rest/android" android:orientation="vertical" android:l

每个文本视图和按钮以及LinearLayout标记

'layout_height' attribute should be defined

'layout_width' attribute should be defined 
这是我的活动_main.xml:

<LinearLayout
xmlns:android="http://schemas.android.com/apk/rest/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="@string/main_title" />
<Button
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/continue_label" />
<Button
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/new_game_label" />
<Button
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/about_label" />
<Button
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/exit_label" />
</LinearLayout>


我正在运行Android Studio 1.1.0,请将您的
xmlns
属性更改为:

xmlns:android=”http://schemas.android.com/apk/res/android“

/res/
/rest/