Android异常
星火凌云
开发过Android应用
展开
-
java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapSDK_v2_3_1 from loader dalvik.system.PathClass
04-24 10:43:32.669: E/AndroidRuntime(11645): java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapSDK_v2_3_1 from loader dalvik.system.PathClassLoader[DexPathList[[zip file"/data/app/com.ttuhui.ttyh-原创 2015-04-24 11:23:26 · 1259 阅读 · 0 评论 -
android java.net.UnknownHostException: api.open.ttuhui.com(网络权限没设置)
android java.net.UnknownHostException: api.open.ttuhui.com 出现此异常,说明你在获取网络资源,但是你没有在清单文件中添加权限。 出现这个异常找了半天都没有搞懂,非常低级的错误,以后不要在犯了,贴出来谨记。 下面贴下来比较常用的权限: 添加WiFi以及访问网络的权限:原创 2015-04-10 15:27:41 · 549 阅读 · 0 评论 -
ViewPager取消Fragment的预加载
ViewPager取消Fragment的预加载使用setUserVisibleHint()方法; 但是如果ViewPager加载第一个Fragment的时候,获取实例化的控件、或者系统控件会报null指针异常,大概是因为当前页面没有绘制完成。因此要判断下。 public boolean isShowView;//是否已可见视图 public RecyclerView rec原创 2017-04-26 19:03:03 · 362 阅读 · 0 评论 -
make sure class name exists, is public, and has an empty constructor that is public
android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.xxx.xxxFragment: make sure class name exists, is public, and has an empty constructor that is public原创 2017-12-26 19:45:36 · 583 阅读 · 0 评论