【发布时间】:2013-08-06 15:50:03
【问题描述】:
我正在从 Action Bar Sherlock 迁移到 Action Bar compat。我删除了 ABS,并且里面有 support-v4-google 地图,但出现了错误。我现在直接把v4加到项目里看看能不能解决,不过我想知道:
如果库是多余的还是互补的,我并不能从文档中真正理解?
感谢您的建议、指点等。
编辑:这是使我使用“外部 jar...”添加 v4 的错误,它解决了它。
The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.
It is indirectly referenced from required .class files
但是如果你说如果已经有 v7 我不应该添加 v4,我该如何向 Eclipse 解释它?
相关帖子,解决方案是在此处添加 v4。 The hierarchy of the type activity is inconsistent when extending ActionBarActivity
编辑 2:如果按照以下步骤逐点完成,v4 jar 将包含在 v7 库项目中:http://developer.android.com/tools/support-library/setup.html#add-library 我的设置是:
- Android 4.3:未选中
- Aprivate Lib:未选中
- v7-app.../src:已检查
- v7-app.../gen : 检查
- 依赖关系:未选中
- 原始 v7 jar:检查
- 原始 v4 jar:检查
【问题讨论】:
标签: android android-support-library android-appcompat