<GridLayout
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>" .
或者用
<Switch
android:id="@+id/switch2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Switch" />
時也報類似錯誤,因為版本過低
Solution : just 把Manifest.xml中的<uses-sdk android:minSdkVersion="10" />改的高些試試 ,然后clean the project and rebuilt it .
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。