在 android15 中,调用 FileDownloader.getImpl().bindService() 时出现 SecurityException
在调用 FileDownloader.getImpl().bindService() 时出现以下错误: java.lang.SecurityException: Unable to start service Intent { cmp=www.test.com/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService (has extras) }: Unable to launch app www.test.com/10696 for service Intent { cmp=www.test.com/com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService }: process is bad at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1983) at android.app.ContextImpl.startService(ContextImpl.java:1940) at android.content.ContextWrapper.startService(ContextWrapper.java:843) at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:167) at com.liulishuo.filedownloader.services.BaseFileServiceUIGuard.bindStartByContext(BaseFileServiceUIGuard.java:129) at com.liulishuo.filedownloader.FileDownloadServiceProxy.bindStartByContext(FileDownloadServiceProxy.java:115) at com.liulishuo.filedownloader.LostServiceConnectedHandler.dispatchTaskStart(LostServiceConnectedHandler.java:138) 但不是总是出现的,只有少数情况下才会出现。
内容来源: lingochamp/FileDownloader