重剑无锋
重剑无锋
  • 发布:2022-12-23 14:23
  • 更新:2022-12-23 14:23
  • 阅读:217

【uts】:无法检测到NFC权限

分类:uts
NFC

uts 插件我要使用NFC。调用nfcAdapter.enableForegroundDispatch(activity, mPendingIntent, arrayOf(mIntentFilter), null);方法后报错,
[Vue warn]: Error in v-on handler: "Error: targetMethod error::java.lang.SecurityException: NFC permission required: Neither user 10240 nor current process has android.permission.NFC."
但是我明明已经在manifest.json中配置了NFC权限并且已经在uts下 index.uts 同路径下的AndroidManifest.xml清单文件中也配置了NFC权限,但就是报错,请问有人知道为啥吗?还是bug?

2022-12-23 14:23 负责人:无 分享
已邀请:

要回复问题请先登录注册