kimmy
kimmy
这个问题根源可能是对前面一个Activity的rootView做了remove、add操作引起的
不是你业务层做的remove、add操作;是咱底层的侧滑事件里面,会把前一个Activity的rootView加到当前的Activity
会导致OOM异常的,我多开了一个进程,用AIDL做进度通信解决了
> > > same issue! did you found any solution for it? > > > > > > Yes. I'm not using this library. ffmpeg mobile was the best solution...
你是打算拿来搞广告吧?
崩溃发生在项目的NetWorkUtils类,里面对网络状态的访问,引起READ_PHONE_STATE权限检查,在安卓11上会报安全异常,解决办法有两个 1、如果你自定义开发没用到网络事件,不启用即可 PlayerConfig.setUseDefaultNetworkEventProducer(false); 2、自己拷贝一份NetworkEventProducer,把NetWorkUtils类加个tryCatch即可 另外项目中ErrorCover 也直接引用了NetWorkUtils类,需要把相关方法增加tryCatch ``` private int tryGetNetworkState() { try { return NetworkUtils.getNetworkState(getContext()); } catch (Throwable throwable) { throwable.printStackTrace(); return STATUS_ERROR; } } ```
在onClickSwitch,你把triggerView还原回来?
android
> 怎么引入? implementation ("com.scwang.smart:refresh-layout-horizontal:2.0.0") 已经失效 > > > 只到1.1.3了 implementation 'com.scwang.smart:refresh-layout-horizontal:2.0.0'