网格布局API 级别 [英] Grid Layout & API Level
问题描述
我想使用网格布局,但出现以下错误:
I want to use Grid Layout, but get the following error:
错误:在包android"中找不到属性columnCount"的资源标识符
Error: No resource identifier found for attribute 'columnCount' in package 'android'
这是因为我的 API 级别是 9 吗?
Is this because my API level is 9?
网格布局真的需要 API 级别 14 吗?(我使用版本:8.0.1.v201012062107-82219)
Does Grid Layout REALLY need API level 14? (I use Version: 8.0.1.v201012062107-82219)
- 如果是,我该怎么办?请逐步解释这一点.
- 如果不是,那是什么原因?我正在做的完全与示例相同!
- If yes, what should I do? Please explain this step by step.
- If no, so what's the reason? I'm doing exactly the same as the example!
推荐答案
以下是我解决问题的步骤:
Here are the steps i spent to solve my problem:
为了使用 GridLayout,我发现应该升级很多东西.
To use GridLayout, i figured out many things should be upgraded.
- 我的系统上安装了jdk 7",因此无需升级.
- 我下载了installer_r20-windows.exe"并运行了它.
- 我下载了包含android-14"的平台",并将其复制到 android-sdk 文件夹中.(我的是:C:\ Android\android-sdk)
- 我下载了包含armeabi-v7a"的系统映像",并将其复制到我的 sdk 文件夹中.
- 我下载了platform-tools_r13-windows"并将其复制到 SDK 文件夹中.
- 然后我发现我的 eclipse 也很旧,因此下载了它的最新版本eclipse 4.2_juno"(2012 年 6 月 27 日)
- 我下载了Eclipse-plugins-ADT-20.0.zip".然后进入 eclipse:Help > Install New Software > Add > Archive > Eclipse-plugins-ADT-20.0.zip.然后选择开发者工具">点击下一步>接受>点击完成>重启eclipse.
- 再次在 eclipse 中:Window> Preferences > Android > SDK Location:我的 android-sdk 文件夹所在的路径.(例如我的是C:\Android\android-sdk")> 应用 > 选择Android 4.0"> 单击好的.
- 然后我创建了新的 AVD,来自:eclipse > Window > AVD Manager > New..
- 最后,在 sdk 文件夹中,我创建了一个名为extras"的新文件夹,另一个名为android"的新文件夹,另一个名为support"的新文件夹.
- 然后我提取了support_r09.zip"的内容(已下载).
现在一切正常..
感谢在这篇文章中帮助过我的所有人(viperbone、Doomsknight、Matthieu、MemLeak、Jeroen).
Thanks to everybody helped me in this post (viperbone, Doomsknight, Matthieu, MemLeak,Jeroen).
这篇关于网格布局API 级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!