如果我使用新的" V7 Appcompat库",我还需要" V4支持库"最少的SDK = 7? [英] If I use new " V7 Appcompat library ", do I still need " V4 Support Library " for a minimum SDK = 7?

查看:102
本文介绍了如果我使用新的" V7 Appcompat库",我还需要" V4支持库"最少的SDK = 7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是从操作栏夏洛特迁移到行动吧COMPAT。我删除ABS和我在它的支持-V4-谷歌地图,我得到了错误。我会直接添加V4到项目,现在,看它是否解决了,但我想知道的:

I am migrating from Action Bar Sherlock to Action Bar compat. I remove ABS and I had support-v4-google maps in it, I got errors. I will add the v4 directly to the project now to see if it solve, but I want to know:

我真的不从文档明白,如果库是多余的或补充?

I don't really understand from the documentation if libraries are redundant or complementing?

感谢您的建议,指针等。

Thanks for advice, pointers etc.

编辑:这是一个让我加入V4与外部罐子......这解决了错误。

This is the error that make me added v4 with "external jar... " It solve it.

The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved. 
It is indirectly referenced from required .class files

但如果你说了,我应该不会增加V4,如果已经有V7我怎么解释到Eclipse?

But if u say i should not add v4 if already have v7 how do I explain it to Eclipse?

相关的职位,该解决方案是在这里补充V4。 <一href="http://stackoverflow.com/questions/17851515/the-hierarchy-of-the-type-activity-is-inconsistent-when-extending-actionbaractiv">The扩展当活动类型层次结构是不一致的ActionBarActivity

Relevant post, the solution was to add v4 here. The hierarchy of the type activity is inconsistent when extending ActionBarActivity

编辑2:V4的罐子包括在V7库项目,如果做以下步骤逐点:<一href="http://developer.android.com/tools/support-library/setup.html#add-library">http://developer.android.com/tools/support-library/setup.html#add-library 我的设置是:

Edit 2: The v4 jar is included in the v7 library project if done following these steps point by point: http://developer.android.com/tools/support-library/setup.html#add-library My setup is :

  • 安卓4.3:未选中
  • APrivate库:未选中
  • V7-应用... / src目录:检查
  • V7-应用... /创:检查
  • ADependencie:未选中
  • 在原料V7罐子:检查
  • 在原始V4罐子:检查

推荐答案

V7包括V4支持库,所以没有必要把它在那里了。

v7 includes the v4 support library so there is no need to have it in there again

如果你在的V7支持库的文件夹,你会看到,V4罐子是在库已引用

if you look in the libs folder of the v7 support library you will see that the v4 jar is already referenced in the library

这篇关于如果我使用新的&QUOT; V7 Appcompat库&QUOT;,我还需要&QUOT; V4支持库&QUOT;最少的SDK = 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆