android15上调用FileDownloader.getImpl().bindService()的时候出现SecurityException

Author: 1345241828Created Sep 3, 2025Updated Nov 19, 2025

调用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) 但是不是稳定出现,只有少数情况下会出现。

Source: lingochamp/FileDownloader