android
抓住重点
生活不止眼前的苟且,还有诗和远方
展开
-
getResources Fragment not attached to Activity
错误堆栈详情:这种情况一般出现场景fragment执行耗时任务(一般是网络操作),在执行完毕之前用户操作fragment退出,导致fragment 与父Activity 失去关联(disAttach),当我们调用getResource时,操作之前默认调用了getActivity ,因此会报错 解决方法: 1.在使用getResource之前 加判断 isAdded(),如...原创 2018-06-29 15:03:24 · 913 阅读 · 0 评论 -
More than one file was found with OS independent path 'lib/armeabi-v7a/libgnustl_shared.so'
项目需要集成萤石云视频SDK,运行时报More than one file was found with OS independent path 'lib/armeabi-v7a/libgnustl_shared.so' 错误,翻译为 找到多个与操作系统无关的文件,路径为“lib/armeabi-v7a/libgnustl-shared.so”,可以理解为libgnustl-shared.so 这...原创 2019-09-02 18:43:42 · 1189 阅读 · 0 评论