Search code examples
androidandroid-layoutandroid-gridlayout

Can't Solve the Error - View requires API level 14 (current min is 8): <GridLayout>


My Code is -

<GridLayout 
xmlns:android= "http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:columnCount="4"
android:orientation="horizontal" >



<Button android:text="@string/btn7" />

<Button android:text="@string/btn8" />

<Button android:text="@string/btn9" />

<Button android:text="@string/btndiv" />

<Button android:text="@string/btn4" />

<Button android:text="@string/btn5" />

<Button android:text="@string/btn6" />

<Button android:text="@string/btnmul" />

<Button android:text="@string/btn1" />

<Button android:text="@string/btn2" />

<Button android:text="@string/btn3" />

<Button android:text="@string/btnmin" />

<Button android:text="@string/btn00" />

<Button android:text="@string/btn0" />

<Button android:text="@string/btndec" />

<Button android:text="@string/btnadd" />

<Button android:text="@string/btnsqrt" />

<Button android:text="@string/btncbrt" />

<Button android:text="@string/btnrec" />

<Button
android:layout_gravity="fill"
android:layout_rowSpan="2"
android:text="@string/btneql" />

<Button android:text="@string/btnpow" />

<Button android:text="@string/btnper" />

<Button android:text="@string/btnmod" />



</GridLayout>

And Eclipse is Giving me Error at the first line of this above Code... The ERROR is - "View requires API level 14 (current min is 8): "

Please help me out..!! I've already downloaded the API ver 14 (Android 4.0), then also I am getting this Error!


Solution

  • In your manifest use:

    <uses-sdk minSdkVersion="14" />
    

    However, this will mean that any device running an android API below 14 will not be able to use your app.