Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(197评价)
价格: 4431.00元
android.app.PendingIntent.checkFlags 如何修复?
亮亮发起了问答2022-09-29
1
回复
354
浏览

使用unity2021.3.2发布到谷歌商店了,但是在谷歌console后台中说应用频繁崩溃。崩溃的详情如下:

Exception java.lang.Error: FATAL EXCEPTION [pool-3-thread-1]
Unity version     : 2021.3.2f1c1
Device model      : realme RMX3195
Device fingerprint: realme/RMX3195RU/RMX3195:12/SP1A.210812.016/R.202208031202:user/release-keys
Build Type        : Release
Scripting Backend : IL2CPP
ABI               : arm64-v8a
Strip Engine Code : true

Caused by: java.lang.IllegalArgumentException: com.sundaycats.sortball: 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.checkFlags (PendingIntent.java:375)
  at android.app.PendingIntent.getBroadcastAsUser (PendingIntent.java:651)
  at android.app.PendingIntent.getBroadcast (PendingIntent.java:638)
  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:1137)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:637)
  at java.lang.Thread.run (Thread.java:1012)

 

在外网或者国内找解决方案,没有一个可行性的。大部分是在Android studio里修改的。我想知道这个问题能不能在unity中修改?如果可以怎么修改?

所有回复
发表回复
你还没有登录,请先 登录或 注册!