Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileDownloadService.inspectRunServiceForeground android.app.MissingForegroundServiceTypeException - Starting FGS without a type callerApp=ProcessRecord{ae38c1e 15288:filedownloader/u0a146} targetSDK=34 #1426

Open
Abrar-Funsol opened this issue Jan 1, 2024 · 1 comment

Comments

@Abrar-Funsol
Copy link

Before Issue

Fatal Exception: java.lang.RuntimeException
Unable to start service com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService@795b2a1 with Intent { cmp=com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService (has extras) }: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{33802c4 20109:filedownloader/u0a330} targetSDK=34

Fatal Exception: java.lang.RuntimeException: Unable to start service com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService@795b2a1 with Intent { cmp=com.liulishuo.filedownloader.services.FileDownloadService$SeparateProcessService (has extras) }: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{33802c4 20109:filedownloader/u0a330} targetSDK=34
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5286)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

  Caused by android.app.MissingForegroundServiceTypeException: Starting FGS without a type  callerApp=ProcessRecord{33802c4 2010:filedownloader/u0a330} targetSDK=34
   at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:53)
   at android.app.MissingForegroundServiceTypeException$1.createFromParcel(MissingForegroundServiceTypeException.java:49)
   at android.os.Parcel.readParcelableInternal(Parcel.java:4882)
   at android.os.Parcel.readParcelable(Parcel.java:4864)
   at android.os.Parcel.createExceptionOrNull(Parcel.java:3064)
   at android.os.Parcel.createException(Parcel.java:3053)
   at android.os.Parcel.readException(Parcel.java:3036)
   at android.os.Parcel.readException(Parcel.java:2978)
   at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7214)
   at android.app.Service.startForeground(Service.java:775)
   at com.liulishuo.filedownloader.services.FileDownloadService.inspectRunServiceForeground(FileDownloadService.java:150)
   at com.liulishuo.filedownloader.services.FileDownloadService.onStartCommand(FileDownloadService.java:150)
   at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5268)
   at android.app.ActivityThread.-$$Nest$mhandleServiceArgs()
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531)
   at android.os.Handler.dispatchMessage(Handler.java:106)
   at android.os.Looper.loopOnce(Looper.java:230)
   at android.os.Looper.loop(Looper.java:319)
   at android.app.ActivityThread.main(ActivityThread.java:8893)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Issue

FileDownloadService.inspectRunServiceForeground android.app.MissingForegroundServiceTypeException - Starting FGS without a type callerApp
Get this crash on Android 14 and mostly Samsung Devices with android 14

请在Issue前认真的跟进上面提到的建议,这样将可以极大的加快你遇到问题的处理。

@Goooler
Copy link

Goooler commented Feb 19, 2024

Duplicate of #1421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants