I am using the getChildFragmentManager()
in an app that is compiling against API level 19, with the minimum SDK set to 14.
getChildFragmentManager()
was introduced in API 17, so devices running at API levels 14, 15, or 16 will throw a NoSuchMethodError
when the method is called.
I did look through all the other StackOverflow questions regarding this issue, but none of them seem to answer this question: is there any way to get the getChildFragmentManager()
method to work on devices pre-API level 17? If so, how?
The method does not seem to be included in either the v4 or v13 support libraries. I have tried clean builds with both v4 and v13 support libraries, but that does not seem to solve the issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…