更新时间:2021-12-19 11:01:51浏览次数:675+次
如果在使用鸿蒙工具当中出现SERVICE_UNAVAILABLE的提示,请按以下解决方案处理。
问题
在安装运行Wearable应用时出现“Failure[SERVICE_UNAVAILABLE]”错误,如下截图:
解决方法
出现该问题时,可能是由于系统出现异常,您可以尝试通过如下方式进行解决:
1、重启Wearabale设备,然后再重新安装。
2、如果问题还没有得到解决,您可以在DevEco Studio中点击Help > Show Log in Explorer收集错误日志信息,然后访问HarmonyOS社区发帖求助,我们会有专人跟进帮助您尽快解决问题。相关参考:有华为鸿蒙官方人员诊断并解决开发问题的HarmonyOS社区/论坛。
附:真机运行报错Failure[SERVICE_UNAVAILABLE]的日志,供参考
环境为在DevEco Studio中,真机是华为手表Galileo-38E型号GLL-AL00,运行应用时安装即报错Failure[SERVICE_UNAVAILABLE],下面是日志信息:
2021-12-09 10:24:00,681 [9483755] INFO - armony.run.tasks.DeployHapTask - End pushing successfully.
2021-12-09 10:24:00,681 [9483755] INFO - riptions.ApplicationSubscriber - HarmonyCustomTopic message logged
2021-12-09 10:24:00,681 [9483755] INFO - armony.run.tasks.DeployHapTask - Starting to install to /sdcard/ee360b78978f439491d04c6c5ee61c3c/.
2021-12-09 10:24:03,788 [9486862] WARN - i.harmony.run.tasks.LaunchTask - Execute exception: Failure[SERVICE_UNAVAILABLE]
2021-12-09 10:24:03,788 [9486862] INFO - armony.run.tasks.DeployHapTask - Ending install with result: false
2021-12-09 10:24:03,788 [9486862] INFO - armony.run.tasks.DeployHapTask - Removing temporary directory /sdcard/ee360b78978f439491d04c6c5ee61c3c
2021-12-09 10:24:03,923 [9486997] INFO - armony.run.tasks.DeployHapTask - Ending remove temp directory with result: true
2021-12-09 10:24:03,923 [9486997] WARN - ny.run.HarmonyLaunchTaskRunner - Some launch tasks failed. Launching the debugger stopped.
2021-12-09 10:24:03,923 [9486997] INFO - run.AndroidLogcatOutputCapture - stopAll()
2021-12-09 10:24:09,436 [9492510] INFO - rationStore.ComponentStoreImpl - Saving appHttpConfigurable took 11 ms
2021-12-09 10:24:16,011 [9499085] INFO - rationStore.ComponentStoreImpl - Saving appHttpConfigurable took 11 ms
相关资讯