错误信息
Build version: 1.0.7
Current date: 2024-08-17 19:07:54
Device: Xiaomi 23013RK75C
OS version: Android 14 (SDK 34)
Stack trace:
android.app.RemoteServiceException$Fore groundServiceDidNotStartlnTimeException:Context.startForegroundService() did
not then call Service.startForeground():
ServiceRecord{a3d1379 u0 r.rclone.client/com.leohao.android.alistlite.service.AlistSe rvice}
at
android.app.ActivityThread.generateForegr oundServiceDidNotStartlnTimeException(A ctivityThread.java:2250)
at
android.app.ActivityThread.throwRemoteSe
rviceException(ActivityThread.java:2221)
at android.app.ActivityThread.-$
$Nest$mthrowRemoteServiceException(Un
known Source:0)
at
android.app.ActivityThread$H.handleMessa
ge(ActivityThread.java:2515)
at
android.os.Handler.dispatchMessage(Handl
er.java:106)
at
android.os.Looper.loopOnce(Looper.java:2
24)
at
android.os.Looper.loop(Looper.java:318)
at
android.app.ActivityThread.main(ActivityTh
read.java:8777)
at java.lang.reflect.Method.invoke(Native
Method)
at
com.android.internal.os.Runtimelnit$Metho dAndArgsCaller.run(Runtimelnit.java:561)at
com.android.internal.os.Zygotelnit.main(Zy
gotelnit.java:1013)
Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here
at
android.app.Contextlmpl.startServiceComm
on(Contextlmpl.java:1963)
at
android.app.Contextlmpl.startForegroundS
ervice(Contextlmpl.java:1917)
at
android.content.ContextWrapper.startFore groundService(ContextWrapper.java:841)at
android.content.ContextWrapper.startFore groundService(ContextWrapper.java:841)at
com.leohao.android.alistlite.MainActivity$
$ExternalSyntheticApiModelOutlineO.m(Sou
rceFile:0)
at
com.leohao.android.alistlite.MainActivity.re
adyToShutdownService(Unknown
Source:23)
at
com.leohao.android.alistlite.MainActivity.la
mbda$initWidgets$2(Unknown Source:2)
at
com.leohao.android.alistlite.MainActivity.
$r8$lambda$jKnM7hQmEh_C7eJsUYB70jkf
6fl(SourceFile:0)
at
com.leohao.android.alistlite.MainActivity$$ExternalSyntheticLambda4.onCheckedCha nged(SourceFile:0)
at
android.widget.CompoundButton.setCheck
ed(CompoundButton.java:225)
at
com.kyleduo.switchbutton.SwitchButton.se
tChecked(Unknown Source:17)
at
com.leohao.android.alistlite.service.AlistSe
rvice.onStartCommand(Unknown
Source:251)
at
android.app.ActivityThread.handleServiceA
rgs(ActivityThread.java:5053)
at android.app.ActivityThread.-$
$Nest$mhandleServiceArgs(Unknown
Source:0)
at
android.app.ActivityThread$H.handleMessa
ge(ActivityThread.java:2435)
... 7 more
错误信息 Build version: 1.0.7 Current date: 2024-08-17 19:07:54 Device: Xiaomi 23013RK75C OS version: Android 14 (SDK 34) Stack trace: android.app.RemoteServiceException$Fore groundServiceDidNotStartlnTimeException:Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{a3d1379 u0 r.rclone.client/com.leohao.android.alistlite.service.AlistSe rvice} at android.app.ActivityThread.generateForegr oundServiceDidNotStartlnTimeException(A ctivityThread.java:2250) at android.app.ActivityThread.throwRemoteSe rviceException(ActivityThread.java:2221) at android.app.ActivityThread.-$ $Nest$mthrowRemoteServiceException(Un known Source:0) at android.app.ActivityThread$H.handleMessa ge(ActivityThread.java:2515) at android.os.Handler.dispatchMessage(Handl er.java:106) at android.os.Looper.loopOnce(Looper.java:2 24) at android.os.Looper.loop(Looper.java:318) at android.app.ActivityThread.main(ActivityTh read.java:8777) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Runtimelnit$Metho dAndArgsCaller.run(Runtimelnit.java:561)at com.android.internal.os.Zygotelnit.main(Zy gotelnit.java:1013) Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here at android.app.Contextlmpl.startServiceComm on(Contextlmpl.java:1963) at android.app.Contextlmpl.startForegroundS ervice(Contextlmpl.java:1917) at android.content.ContextWrapper.startFore groundService(ContextWrapper.java:841)at android.content.ContextWrapper.startFore groundService(ContextWrapper.java:841)at com.leohao.android.alistlite.MainActivity$ $ExternalSyntheticApiModelOutlineO.m(Sou rceFile:0) at com.leohao.android.alistlite.MainActivity.re adyToShutdownService(Unknown Source:23) at com.leohao.android.alistlite.MainActivity.la mbda$initWidgets$2(Unknown Source:2) at com.leohao.android.alistlite.MainActivity. $r8$lambda$jKnM7hQmEh_C7eJsUYB70jkf 6fl(SourceFile:0) at com.leohao.android.alistlite.MainActivity$$ExternalSyntheticLambda4.onCheckedCha nged(SourceFile:0) at android.widget.CompoundButton.setCheck ed(CompoundButton.java:225) at com.kyleduo.switchbutton.SwitchButton.se tChecked(Unknown Source:17) at com.leohao.android.alistlite.service.AlistSe rvice.onStartCommand(Unknown Source:251) at android.app.ActivityThread.handleServiceA rgs(ActivityThread.java:5053) at android.app.ActivityThread.-$ $Nest$mhandleServiceArgs(Unknown Source:0) at android.app.ActivityThread$H.handleMessa ge(ActivityThread.java:2435) ... 7 more