FileDownloader
FileDownloader copied to clipboard
在华为中兴等机型上报java.lang.RuntimeException: Occur Unknown Error, when request to start maybe some problem in binder, maybe the process was killed in unexpected.
然后在assets中添加process.non-separate=true则解决了此问题,请问是什么原因导致的?之前没出现过,线上版本已存在此问题。
这应该是个很极端的边界 case ,可能是启动 task 和 启动 service 同时进行了。不过具体是怎样需要有 FileDownloader 日志才能分析。还有你启动的线程是主线程吗?
默认 FileDownloader 运行在 filedownloader
进程,process.non-separate=true
表示FileDownloader在主进程运行 ,此时启动下载服务没有启动 filedownloader
进程的过程,所以推测不会出现这个问题。
我用的最新版本突然遇到了这个问题。。。马上就要发新包了。。。