String types not allowed (at 'layout_height' with value 'match-parent')
<p>I am using the scroll View in my activity page.In the starting of the xml I am using this scrollView in whichI have different LinearLayouts.</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;ScrollView    
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match-parent"    
    android:layout_width="match-parent"&gt;


&lt;LinearLayout 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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.hsports.bandpop.MainActivity"
    android:orientation="vertical"&gt;    

    &lt;TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/title"
        android:text="POP BANDS"
        android:gravity="center"    
        android:textSize="50dp" /&gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_gravity="center"    
        android:paddingTop="100dp" &gt;

    &lt;AutoCompleteTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/username"
        android:hint="Username"
        android:gravity="center"/&gt;

    &lt;AutoCompleteTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/password"
        android:hint="Password"
        android:gravity="center"
        android:inputType="textPassword"/&gt;

&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingTop="50dp"&gt;

        &lt;Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="SIGN IN"
            android:onClick="checkSignIn"
            android:gravity="center" /&gt;

        &lt;Button
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="REGISTER"
            android:onClick="registerForm"
            android:gravity="center"/&gt;

&lt;/LinearLayout&gt;
    &lt;/LinearLayout&gt;


&lt;/LinearLayout&gt;
&lt;/ScrollView&gt;
</code></pre>

<p>The error I am getting is:
Error:(7, 28) String types not allowed (at 'layout_height' with value 'match-parent').
Error:(9, 27) String types not allowed (at 'layout_width' with value 'match-parent').</p>