帖子
帖子
用户
博客
课程
显示全部楼层
3
帖子
0
勋章
23
Y币

[BUG] 使用ajpush 推送消息 应用会闪退

[复制链接]
发表于 2024-4-26 14:34:42
本帖最后由 BIP977175 于 2024-4-26 15:10 编辑


这是手机应用闪退的log日志
Android|M2012K10C|13
java.lang.RuntimeException: Unable to start receiver com.open.apicloud.jpush.JPushReceiver: java.lang.IllegalArgumentException: app: 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.handleReceiver(ActivityThread.java:4587)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2289)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8348)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
Caused by: java.lang.IllegalArgumentException: app: 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:401)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:484)
at android.app.PendingIntent.getActivity(PendingIntent.java:470)
at android.app.PendingIntent.getActivity(PendingIntent.java:434)
at com.open.apicloud.jpush.JPushNotification.makeIntent(JPushNotification.java:125)
at com.open.apicloud.jpush.JPushNotification.notify(JPushNotification.java:96)
at com.open.apicloud.jpush.JPushReceiver.performMessage(JPushReceiver.java:78)
at com.open.apicloud.jpush.JPushReceiver.onReceive(JPushReceiver.java:37)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4575)
... 9 more

java.lang.IllegalArgumentException: app: 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:401)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:484)
at android.app.PendingIntent.getActivity(PendingIntent.java:470)
at android.app.PendingIntent.getActivity(PendingIntent.java:434)
at com.open.apicloud.jpush.JPushNotification.makeIntent(JPushNotification.java:125)
at com.open.apicloud.jpush.JPushNotification.notify(JPushNotification.java:96)
at com.open.apicloud.jpush.JPushReceiver.performMessage(JPushReceiver.java:78)
at com.open.apicloud.jpush.JPushReceiver.onReceive(JPushReceiver.java:37)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4575)
at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2289)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8348)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)

0
帖子
1
勋章
2524
Y币
这个正在处理, 预计下周一之前发布。你留意下新版本吧
您需要登录后才可以回帖 登录

本版积分规则