Huawei Healthy Lifestyle App (ArkTS)をインポートし、DevEco Studio
次のコマンドで開き、実行時にエラーを報告します。
error: failed to start ability.
Error while Launching activity
解決策:module.json5
内の値を から に変更しますexported
。false
true
"exported": true,
通常通り実行できます:
構成ファイルの説明を確認してくださいmodule.json5
。正しいexported
説明は次のとおりです。
設定値false
が の場合、他のアプリケーションから呼び出すことができないため、エラーとなります。
Huawei フォーラムを参照してください。
https://developer.huawei.com/consumer/cn/forum/topic/0204126532204858364