導(dǎo)入華為健康生活應(yīng)用(ArkTS),使用DevEco Studio
打開,運行報錯:
error: failed to start ability.
Error while Launching activity
解決辦法:修改module.json5
里面exported
的值,由false
改為true
即可
"exported": true,
可以正常運行了:
查看module.json5
配置文件說明,對exported
的說明如下:
設(shè)置值為false
時不能被其他應(yīng)用調(diào)用,所以出現(xiàn)錯誤。
參考華為論壇:文章來源:http://www.zghlxwxcb.cn/news/detail-642378.html
https://developer.huawei.com/consumer/cn/forum/topic/0204126532204858364文章來源地址http://www.zghlxwxcb.cn/news/detail-642378.html
到了這里,關(guān)于導(dǎo)入示例工程出現(xiàn)error: failed to start ability. Error while Launching activity錯誤的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!