HarmonyOS 鸿蒙Next 运行时,DevEco 报 Unable to find the BMS service.
HarmonyOS 鸿蒙Next 运行时,DevEco 报 Unable to find the BMS service.
Dev Eco 重启后,运行程序,就报 Unable to find the BMS service,重启之前是可以运行的。
出现这个错误之后,等了几个小时,还是没有,中途 重启过电脑,重启过Dev Eco,都没有解决
环境:DevEco 版本 3.1.1 ,运行在本地模拟器上,本地模拟器的版本为9
相应的log 如下:
2024-02-01 15:20:31,097 [2106509] INFO - #com.huawei.deveco.common.url.service.AbstractUrlPathServiceImpl - get url with grs and config is :[https://developer.harmonyos.com]!ide.install.error.bundle.installer.failed.url!
2024-02-01 15:20:31,110 [2106522] INFO - #com.huawei.ohos.infocenter.util.InfoFileUtils - Begin read file from path
2024-02-01 15:20:31,124 [2106536] INFO - #com.huawei.ohos.infocenter.action.FaqAction - request coming from another plugin to faq
2024-02-01 15:20:31,150 [2106562] INFO - #com.huawei.ohos.infocenter.component.WindowPanel - JCEF browser init finished
2024-02-01 15:20:31,151 [2106563] INFO - #com.huawei.ohos.infocenter.component.WindowPanel - JCEF router init finished
2024-02-01 15:20:31,153 [2106565] INFO - #com.huawei.ohos.infocenter.component.WindowPanel - create content panel succeed
2024-02-01 15:20:31,161 [2106573] INFO - #com.huawei.ohos.infocenter.component.WindowPanel - InfoCenter init view finished
2024-02-01 15:20:31,168 [2106580] INFO - #com.huawei.ohos.infocenter.component.WindowPanel - InfoCenter refresh view finished
2024-02-01 15:20:32,474 [2107886] INFO - #com.huawei.ohos.infocenter.util.InfoFileUtils - Begin read file from path
2024-02-01 15:20:33,178 [2108590] INFO - #com.huawei.ohos.infocenter.util.InfoFileUtils - Begin read file from path
2024-02-01 15:20:33,633 [2109045] INFO - #com.huawei.ide.lemon.subscriptions.ApplicationSubscriber - HarmonyCustomTopic message logged
2024-02-01 15:20:33,701 [2109113] INFO - #com.huawei.ohos.infocenter.util.InfoFileUtils - Begin read file from path
2024-02-01 15:20:43,541 [2118953] INFO - #c.i.c.ComponentStoreImpl - Saving appFileTypeManager took 20 ms, HttpConfigurable took 65 ms, LafManager took 20 ms, XDebuggerSettings took 19 ms
2024-02-01 15:21:38,516 [2173928] INFO - #com.huawei.ide.trace.conf.CommonProperties - InnerUtils not found
2024-02-01 15:21:38,683 [2174095] INFO - #com.huawei.ide.trace.worker.BatchUploadTraceDataWorker - Trace-sdk get GRS Address succeed!
2024-02-01 15:21:38,684 [2174096] INFO - #com.huawei.ide.trace.http.WiseEyeHttpUtil - begin
2024-02-01 15:21:38,938 [2174350] INFO - #com.huawei.ide.trace.http.WiseEyeHttpUtil - Upload idedata successed!
2024-02-01 15:22:44,341 [2239753] WARN - #c.i.o.a.i.ActionUpdater - 487 ms to grab EDT for FontEditorPreview$RestorePreviewTextAction#update@ContextToolbar (com.intellij.application.options.colors.FontEditorPreview$RestorePreviewTextAction)
2024-02-01 15:22:44,426 [2239838] INFO - #com.huawei.ohos.infocenter.action.InfoCenterAction - InfoCenter is visible:true
2024-02-01 15:22:44,426 [2239838] INFO - #com.huawei.ohos.infocenter.action.DeveloperDocumentAction - Developer Documentation is visible:TRUE
2024-02-01 15:22:44,426 [2239838] INFO - #com.huawei.ohos.infocenter.action.FaqAction - FAQ is visible:TRUE
2024-02-01 15:22:44,578 [2239990] INFO - #com.huawei.ohos.infocenter.action.InfoCenterAction - InfoCenter is visible:true
2024-02-01 15:22:44,578 [2239990] INFO - #com.huawei.ohos.infocenter.action.DeveloperDocumentAction - Developer Documentation is visible:TRUE
2024-02-01 15:22:44,578 [2239990] INFO - #com.huawei.ohos.infocenter.action.FaqAction - FAQ is visible:TRUE
2024-02-01 15:22:45,311 [2240723] INFO - #com.huawei.ohos.infocenter.action.InfoCenterAction - InfoCenter is visible:true
2024-02-01 15:22:45,311 [2240723] INFO - #com.huawei.ohos.infocenter.action.DeveloperDocumentAction - Developer Documentation is visible:TRUE
2024-02-01 15:22:45,323 [2240735] INFO - #com.huawei.ohos.infocenter.action.FaqAction - FAQ is visible:TRUE
2024-02-01 15:22:47,445 [2242857] INFO - #c.i.c.ComponentStoreImpl - Saving appFileTypeManager took 49 ms, HttpConfigurable took 22 ms, VcsApplicationSettings took 12 ms
2024-02-01 15:22:47,526 [2242938] INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=HelloWorld, containerState=COMPONENT_CREATED, componentStore=C:\work_hm\HelloWorld)RunManager took 12 ms
2024-02-01 15:24:10,871 [2326283] WARN - #c.i.o.a.i.ActionUpdater - 328 ms to grab EDT for HotReloadAction#update@NavBarToolbar (com.huawei.ide.jerry.action.HotReloadAction)
2024-02-01 15:24:10,928 [2326340] INFO - #com.huawei.hvigor.service.HvigorWrapperService - Find hvigor boot script:C:\Users\psonduan.hvigor\project_caches\f4b6e2fcc64a39f7815354fe76933d40\workspace\node_modules@ohos\hvigor\bin\hvigor.js
2024-02-01 15:24:10,930 [2326342] INFO - #com.huawei.hvigor.service.HvigorWrapperService - Find hvigor boot script:C:\Users\psonduan.hvigor\project_caches\f4b6e2fcc64a39f7815354fe76933d40\workspace\node_modules@ohos\hvigor\bin\hvigor.js
2024-02-01 15:24:10,932 [2326344] INFO - #com.huawei.hvigor.run.HvigorRunManager - No need to download SDK.
2024-02-01 15:24:10,948 [2326360] INFO - #com.huawei.hvigor.run.HvigorRunConfiguration - hvigorVersion: 2.4.2
2024-02-01 15:24:10,949 [2326361] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Check process is available.
2024-02-01 15:24:10,949 [2326361] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - C:\Windows\System32\wbem\wmic
2024-02-01 15:24:10,949 [2326361] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution command: ‘[C:\Windows\System32\wbem\wmic process where processid=“17284” get processid,caption,commandline]’
2024-02-01 15:24:11,223 [2326635] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution command completed
2024-02-01 15:24:11,223 [2326635] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution result: Caption CommandLine ProcessId node.exe C:\Users\psonduan\nodejs\node.exe C:\Users\psonduan.hvigor\project_caches\f4b6e2fcc64a39f7815354fe76933d40\workspace\node_modules.pnpm@ohos+hvigor@2.4.2\node_modules@ohos\hvigor\src\base\daemon\process\daemon-process-boot-script.js INFO 17284
2024-02-01 15:24:11,223 [2326635] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - call process.destroy() method.
2024-02-01 15:24:11,224 [2326636] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution command: ‘[C:\Users\psonduan\nodejs\node.exe, -v]’
2024-02-01 15:24:11,293 [2326705] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution command completed
2024-02-01 15:24:11,293 [2326705] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - Execution result: v16.19.1
2024-02-01 15:24:11,293 [2326705] INFO - #com.huawei.hvigor.utils.HvigorProcessUtil - call process.destroy() method.
2024-02-01 15:24:11,296 [2326708] WARN - #c.i.o.a.i.ActionUpdater - 347 ms to grab EDT for HotReloadAction#update@NavBarToolbar (com.huawei.ide.jerry.action.HotReloadAction)
2024-02-01 15:24:11,298 [2326710] WARN - #c.i.o.a.i.ActionUpdater - 347 ms to grab EDT for SelectFileAction#isSelectEnabled@ToolwindowTitle (com.intellij.ide.projectView.impl.SelectFileAction)
2024-02-01 15:24:11,305 [2326717] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.on(Output, fn)
2024-02-01 15:24:11,305 [2326717] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.on(BuildStatus, fn)
2024-02-01 15:24:11,306 [2326718] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.on(connect, fn)
2024-02-01 15:24:11,306 [2326718] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.on(connect_error, fn)
2024-02-01 15:24:11,306 [2326718] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.on(disconnect, fn)
2024-02-01 15:24:11,306 [2326718] INFO - #com.huawei.hvigor.client.connect.HvigorConnection - socket.emit(CommonBuild, [{“mode”:“module”,“prop”:[“module=entry@default”,“product=default”,“debuggable=true”],"_":[“assembleHap”]})
2024-02-01 15:24:11,332 [2326744] INFO - #com.huawei.hvigor.client.connect.HvigorConnector - connected…
2024-02-01 15:24:12,218 [2327630] INFO - #com.huawei.hvigor.run.HvigorRunConfiguration - C:\Users\psonduan\nodejs\node.exe C:\Users\psonduan.hvigor\project_caches\f4b6e2fcc64a39f7815354fe76933d40\workspace\node_modules@ohos\hvigor\bin\hvigor.js --mode module -p module=entry@default -p product=default -p debuggable=true assembleHap
2024-02-01 15:24:12,218 [2327630] INFO - #com.huawei.hvigor.run.HvigorRunConfiguration - Launch succeeded
2024-02-01 15:24:12,218 [2327630] INFO - #com.huawei.hvigor.client.connect.HvigorConnector - connect closed: io client disconnect
2024-02-01 15:24:12,296 [2327708] INFO - #com.huawei.ide.lemon.subscriptions.ApplicationSubscriber - HarmonyCustomTopic message logged
2024-02-01 15:24:12,404 [2327816] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Starting to execute the deployment task.
2024-02-01 15:24:12,404 [2327816] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Force stopping com.example.helloworld
2024-02-01 15:24:12,639 [2328051] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Ending force stop with result: true
2024-02-01 15:24:12,639 [2328051] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Starting to uninstall com.example.helloworld.
2024-02-01 15:24:12,893 [2328305] WARN - #com.huawei.deveco.debugger.hos.utils.DebuggerUtils - Execute exception: Cause: Unable to find the BMS service.
Solution: Try again later. If the issue persists, collect logs and go to Help > Contact Support.
2024-02-01 15:24:12,894 [2328306] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Ending uninstall with result: false
2024-02-01 15:24:12,894 [2328306] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Starting to push C:\work_hm\HelloWorld\entry\build\default\outputs\default\entry-default-unsigned.hap to /sdcard/fddc529a57bb4fd194e986dff6be91e5/entry-default-unsigned.hap.
2024-02-01 15:24:13,298 [2328710] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - End pushing successfully.
2024-02-01 15:24:13,298 [2328710] INFO - #com.huawei.ide.lemon.subscriptions.ApplicationSubscriber - HarmonyCustomTopic message logged
2024-02-01 15:24:13,298 [2328710] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Starting to install to /sdcard/fddc529a57bb4fd194e986dff6be91e5/.
2024-02-01 15:24:13,441 [2328853] WARN - #com.huawei.deveco.debugger.hos.utils.DebuggerUtils - Execute exception: Cause: Unable to find the BMS service.
Solution: Try again later. If the issue persists, collect logs and go to Help > Contact Support.
2024-02-01 15:24:13,442 [2328854] INFO - #com.huawei.ide.lemon.subscriptions.ApplicationSubscriber - HarmonyCustomTopic message logged
2024-02-01 15:24:13,442 [2328854] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Ending install with result: false
2024-02-01 15:24:13,442 [2328854] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Removing temporary directory /sdcard/fddc529a57bb4fd194e986dff6be91e5
2024-02-01 15:24:13,770 [2329182] INFO - #com.huawei.deveco.debugger.hos.run.tasks.DeployHapTask - Ending remove temp directory with result: true
2024-02-01 15:24:13,771 [2329183] WARN - #com.huawei.deveco.debugger.hos.run.tasks.HarmonyLaunchTaskExecutor - Some launch tasks failed. Launching the debugger stopped.
2024-02-01 15:24:16,147 [2331559] INFO - #c.i.c.ComponentStoreImpl - Saving appArkPlugin took 12 ms, EditorColorsManagerImpl took 24 ms, HttpConfigurable took 31 ms, Persistent took 12 ms
更多关于HarmonyOS 鸿蒙Next 运行时,DevEco 报 Unable to find the BMS service.的实战教程也可以访问 https://www.itying.com/category-93-b0.html
启动很慢 有点耐心
更多关于HarmonyOS 鸿蒙Next 运行时,DevEco 报 Unable to find the BMS service.的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
在HarmonyOS鸿蒙Next运行时,DevEco报错“Unable to find the BMS service”通常是由于Bundle Management Service(BMS)未正确启动或配置导致的。BMS是鸿蒙系统中负责应用包管理的核心服务,若其未正常运行,DevEco Studio将无法完成相关操作。
可能的原因包括:
- BMS服务未正确安装或启动。
- 设备或模拟器的系统版本与DevEco Studio不兼容。
- 配置文件或环境变量设置错误。
解决方法:
- 确保设备或模拟器已正确安装并启动了BMS服务。
- 检查设备或模拟器的系统版本是否与DevEco Studio兼容。
- 验证DevEco Studio的配置文件和环境变量设置是否正确。
若问题仍未解决,建议查阅相关文档或日志以获取更多信息。