相关疑难解决方法(0)

android.support.v4.app.Fragment:undefined方法getChildFragmentManager()

我正在使用ActionBarSherlockViewPageIndicator我试图实现嵌套片段,但getChildFragmentManager()我的方法未定义android.support.v4.app.Fragments.

没有其他错误,ABS和VPI按预期工作.

我没有使用支持库v13,我使用的是最新版本,我已经清理了我的项目.正常人android.app.Fragment不会抱怨getChildFragmentManager().

我还尝试重新安排支持库依赖项(ABS中的android-support-v4.jar,引用它的VPI和主项目,或者作为外部jar的android-support-v4.jar),但getChildFragmentManager()仍未定义.

如果我删除VPI getChildFragmentManager(),但工作,但VPI当然停止工作.所以,依赖项肯定存在问题,但我的想法已经用完了.

任何帮助将非常感激!

android android-fragments android-support-library android-nested-fragment

2
推荐指数
1
解决办法
1万
查看次数