HarmonyOS health\_-service\_-kit\_-sample-code?

demo的地址是https://gitee.com/harmonyos\_samples/health\_-service\_-kit\_-sample-code ,粘贴了AuthManagement这个类,到项目里面不生效,但是在demo里面就生效。AuthManagement获取auto后报错,自己create了一个项目,也不生效,在自己项目里面也不生效,统一报了这个错:

Failed to request authorization. Code: undefined, message: Cannot read property connectServiceExtensionAbility of undefined
阅读 567
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进