哈哈,我自己解决了,是因为我在布局里把fragment写成了FrameLayout (⊙﹏⊙)b。
然后又出现 了新的问题:Caused by: java.lang.ClassCastException: android.support.v4.app.NoSaveStateFrameLayout cannot be cast to android.widget.RadioGroup。
也解决了。(*^__^*)
在libs下的android-support-v4.jar,右键-->构建路径。要引用这个库文件
终于运行成功了!
博主求分享你的fragement加ListView的代码,我这一直报空指针!!!!!!!!!谢谢,本人qq:978164392