想实现nfc后台扫码的功能,tag.getTagInfo(want);这个方法无法编译
The default system capabilities of devices phone, tablet, 2in1 do not include SystemCapability.Communication.NFC.Tag. Configure the capabilities in syscap.json. <ArkTSCheck\>
想实现nfc后台扫码的功能,tag.getTagInfo(want);这个方法无法编译
The default system capabilities of devices phone, tablet, 2in1 do not include SystemCapability.Communication.NFC.Tag. Configure the capabilities in syscap.json. <ArkTSCheck\>
1 回答1.1k 阅读✓ 已解决
1 回答1.4k 阅读
1 回答1.2k 阅读
1 回答1.2k 阅读
1 回答1.2k 阅读
1 回答1k 阅读
1 回答1k 阅读
这个是因为设备没有SystemCapability.Communication.NFC.Tag的能力导致的,可以参考以下文档进行自定义配置:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/syscap-V5