View requires API level 14 (current min is 8)
2016-03-16 09:20
357 查看
<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/switch1"
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 .
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/switch1"
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 .
相关文章推荐
- UESTC 250 windy数
- 基于SSH框架的EasyUI的前端DataGrid实现
- LeetCode-63-Unique Paths II(动规)-Medium
- php关联数组通过key获取value
- UESTC 758 P酱的冒险旅途
- 如何得到Ubuntu UI Toolkit的版本
- POJ 3061 Subsequence (尺取)
- IOS NSOperation&NSOperationQueue
- 如何获取网页验证码图片并保存到本地(Java实现) [问题点数:40分,结帖人lanxuezaipiao]
- UGUI动态改变Grid大小
- UVA 11538Chess Queen
- 深度学习方法(七):最新SqueezeNet 模型详解,CNN模型参数降低50倍,压缩461倍!
- 深度学习方法(七):最新SqueezeNet 模型详解,CNN模型参数降低50倍,压缩461倍!
- 深度学习方法(七):最新SqueezeNet 模型详解,CNN模型参数降低50倍,压缩461倍!
- iOS开发笔记12:iOS7上UITextField限制字数输入导致崩溃问题
- Leetcode Longest Consecutive Sequence
- UIWindow的研究
- UIGraphicsBeginImageContext
- UITableView性能优化
- caffe代码阅读3:data_reader、internalthread以及blocking_queue的实现细节-2016.3.15