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

[多端开发] ajpush 发送测试通知app会闪退

[复制链接]
发表于 2024-4-25 16:20:35
本帖最后由 双顺达ssd 于 2024-4-25 17:05 编辑

ajpush 发送测试通知测试app会闪退

662a1cc725036.png
大概率是你的配置问题
6
帖子
0
勋章
63
Y币
本帖最后由 双顺达ssd 于 2024-4-26 10:59 编辑

你好请问这个问题是什么原因呢
662b07133f76e.png 662b0a7112267.png

java.lang.RuntimeException: Unable to start receiver com.open.apicloud.jpush.JPushReceiver: java.lang.IllegalArgumentException: com.ssd.ZJ12379: 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: com.ssd.ZJ12379: 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: com.ssd.ZJ12379: 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)

您需要登录后才可以回帖 登录

本版积分规则