3***@qq.com
3***@qq.com
  • 发布:2024-09-12 14:57
  • 更新:2024-09-12 14:57
  • 阅读:73

调试模拟器没问题,真机android (14)闪退

分类:uni-app x

真机上报错,闪退:

java.lang.IllegalArgumentException: uni.UNI9XXXX0: 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:430)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:733)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:720)
at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:174)
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:108)
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:86)
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1251)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
at java.lang.Thread.run(Thread.java:1012)

2024-09-12 14:57 负责人:无 分享
已邀请:

要回复问题请先登录注册