termux报错反馈

程序出错,请将以下信息长按-全选-复制传递给开发者频道反馈(复制错误点击以下链接反馈)

 反馈渠道:https://xheishou.com/forum/21.html

Version:0.118.3.70

 

java.lang.RuntimeException: Unable to start service com.termux.app.RunCommandService@d295c13 with Intent { act=com.termux.RUN_COMMAND xflg=0x4 cmp=com.termux/.app.RunCommandService (has extras) }: java.lang.IllegalArgumentException: com.termux: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

 at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:6232)

 at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)

 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3141)

 at android.os.Handler.dispatchMessage(Handler.java:114)

 at android.os.Looper.loopOnce(Looper.java:266)

 at android.os.Looper.loop(Looper.java:361)

 at android.app.ActivityThread.main(ActivityThread.java:10348)

 at java.lang.reflect.Method.invoke(Native Method)

 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:675)

 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1002)

Caused by: java.lang.IllegalArgumentException: com.termux: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

 at android.app.PendingIntent.checkPendingIntent(PendingIntent.java:458)

 at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:574)

 at android.app.PendingIntent.getActivity(PendingIntent.java:560)

 at android.app.PendingIntent.getActivity(PendingIntent.java:524)

 at l5.a.f(SourceFile:1)

 at l5.a.c(SourceFile:178)

 at com.termux.app.RunCommandService.onStartCommand(Unknown Source:356)

 at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:6214)

 … 9 more

 

请登录后发表评论