SDK管理器中找不到Android兼容包
我想开始学习使用 Fragment,并且想安装 3.0 之前版本的 Android 的兼容性包。
但是我在SDK管理器上似乎找不到这个包。以下是我看到的所有内容:
另外,我想安装 Action Bar Sherlock 以与 Action Bar 一起使用。在 ACS 网站上,它显示“如果您使用带有 ADT 插件版本 0.9.7 或更高版本的 Eclipse 开发环境,您可以将其包含为库项目” -
如何包含库项目?
谢谢
I want to start learning to work with Fragments and I want to install the Compatibility package for pre 3.0 versions of Android.
However, I can't seem to find this package on the SDK manager. Here's everything I see:
Also, I want to install Action Bar Sherlock to work with Action Bars. On the ACS website it says "If you’re using the Eclipse Development Environment with the ADT plugin version 0.9.7 or greater you can include this as a library project" -
how do I include library projects?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它称为Android 支持包。
引用库项目
假设您使用的是 Eclipse,这是引用库项目的方式(重点)
It's called the Android Support Package.
Referencing Library Projects
Assuming you're using Eclipse, this is how you reference a library project (highlights):
要包含库项目,请右键单击您的项目并选择“属性”,然后选择“Android”。您将看到一个包含图书馆项目的表格。单击添加。 (库项目必须加载到 Eclipse 中。)
To include library projects, right-click on your project and select Properties, then Android. You will see a form to include library projects. Click Add. (The library project must be loaded in Eclipse.)
如果您在已安装支持包时遇到此问题,则通过 sdk 管理器卸载支持包,然后创建一个新应用程序并从新应用程序向导中选择安装选项对我有用。我认为这是一个位置问题,从新的应用程序向导重新安装可以解决该问题。
If you have this problem when the support package is already installed then uninstalling the support package through the sdk manager then creating a new app and choosing install option from the new app wizard worked for me. It's a location issue I think and re-installing from the new app wizard takes care of the problem.