报错的对应的 fragment没有 空构造函数

如果报错的fragment名字是 :AFragment

解决办法:自己在该AFragment里面,重写空的构造函数

public AFragment(){}

这样写就解决问题了。

更多推荐