NFC

一、问题描述

NFC Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE

二、解决方法

判断是否高版本号,将配置调整如此即可: pendingIntent = PendingIntent.getActivity(context, requestCode, intent, PendingIntent.FLAG_IMMUTABLE);

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

大太阳