导入华为健康生活应用(ArkTS),使用DevEco Studio打开,运行报错:
error: failed to start ability.
Error while Launching activity

解决办法:修改module.json5里面exported的值,由false改为true即可
"exported": true,

可以正常运行了:

查看module.json5配置文件说明,对exported的说明如下:

设置值为false时不能被其他应用调用,所以出现错误。
参考华为论坛:
https://developer.huawei.com/consumer/cn/forum/topic/0204126532204858364



















