HarmonyOS 使用rcp 在X86模拟器上,rcp对象undefined?

根据文档配置相关权限

导包

import { rcp } from “@kit.RemoteCommunicationKit”;

rcp.createSession()

Error message:Cannot read property createSession of undefined

SourceCode:

const session = rcp.createSession();

阅读 485
1 个回答

模拟器暂时不支持 Remote Communication Kit(远场通信服务),建议用真机测试。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进