Import the Huawei Healthy Lifestyle App (ArkTS) , DevEco Studio
open it, and run it to report an error:
error: failed to start ability.
Error while Launching activity
Solution: Modify the value module.json5
inside exported
, from false
totrue
"exported": true,
It can run normally:
Check module.json5
the configuration file description, the correct exported
description is as follows:
When the set value false
is , it cannot be called by other applications, so an error occurs.
Refer to Huawei Forum:
https://developer.huawei.com/consumer/cn/forum/topic/0204126532204858364