0
我有一个滑动菜单的类。 当我在我的活动中恢复时,当应用程序暂停时,出现以下错误!
android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment kostas.menu.rssreader.ListActivity$SampleListFragment: make sure class name exists, is public, and has an empty constructor that is public
你的意思是'公共ListActivity(){}'?这会返回相同的错误 –
否否否,'Fragment'需要一个空的构造函数。添加'公共SampleListFragment(){};' – thepoosh
我已经尝试了他们两个,不幸的是遗留下来的错误.. –