E/AndroidRuntime(15377): Caused by: java.lang.InstantiationException: can't instantiate class com.*.*.FriendsActivity; no empty constructor
在用fragment做跳转的时候出现的错误记录解决办法:是因为该Fragment没有使用空参的构造函数,补上--
public FriendsActivity()
{
super();
}
本文介绍了一种在Android开发中遇到的问题,即使用Fragment进行页面跳转时因缺少空参数构造函数导致的InstantiationException异常,并提供了具体的解决方案。
E/AndroidRuntime(15377): Caused by: java.lang.InstantiationException: can't instantiate class com.*.*.FriendsActivity; no empty constructor
在用fragment做跳转的时候出现的错误记录解决办法:是因为该Fragment没有使用空参的构造函数,补上--
public FriendsActivity()
{
super();
}
8431
894
1013
3075

被折叠的 条评论
为什么被折叠?