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
- 更新:2022-12-23 14:23
- 阅读:352
0 个回复