MQTT

一、问题描述

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.

二、解决方法(1)

1、下载源码,并将下图位置作为适配高版本的配置

三、解决方法(2)

有老哥已经上传处理好了一版:https://github.com/ElectApp/MyMQTT?tab=readme-ov-file

THE END
大可不必那么完美
Thank You Very Much To Everyone Who Helped Me

大太阳