一、问题描述
NFC Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE
二、解决方法
判断是否高版本号,将配置调整如此即可: pendingIntent = PendingIntent.getActivity(context, requestCode, intent, PendingIntent.FLAG_IMMUTABLE);
THE END