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

(207评价)
优惠后 ¥1899.00优惠前 ¥2499.00 双十一全年最大力度限时优惠
1对1 答疑即时回复7天无理由退款30天价保提问必答

服务保障

1对1 答疑

提供专属的一对一在线答疑,快速答疑解惑。

即时回复

及时响应学习咨询,帮助解决问题。

7天无理由退款

购买后7天内可申请无理由退款。

30天价保

购买后30天内如遇降价,可申请价保。

提问必答

对于提问做到有问必答,帮您扫清学习过程中的种种障碍

android.app.PendingIntent.checkFlags 如何修复?
亮亮发起了问答2022-09-29
1
回复
716
浏览

使用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中修改?如果可以怎么修改?

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