Missing resource identifier for height and width


#1

Hi I am a newbie to android programming.

I keep getting the following message but not sure what it means.

Any help would be great. Thanks in advance!

Multiple annotations found at this line:
- error: No resource identifier found for attribute ‘Layout_height’ in package
’android’
- error: No resource identifier found for attribute ‘Layout_width’ in package
’android’

my code

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:Layout_width="match_parent"
    android:Layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical" >
    
   
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="24dp"
        android:text="@string/question_text" />
    
    <LinearLayout 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >
        
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/true_button" />
        
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/false_button" />
        
        </LinearLayout>
</LinearLayout>

#2

This is because the attributes are “layout_height” and “layout_width” and not “Layout_height” and “Layout_width”. It is case sensitive.