<GridLayout
android:columnCount="4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/gridContainer"
android:animateLayoutChanges="true"
android:columnCount="4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/gridContainer"
android:animateLayoutChanges="true"
/>
When I change android:columnCount="4" to android:columnCount="5" , eclipse show the error "Type View requires API level 14 (current min is 4): <GridLayout>" .
Solution : just clean the project and rebuilt it .