Tag Archives: harmonic

[ERROR_BUNDLE_PATH_OR_FILE] & Error while Deploying HAP

Harmony App installation error on real machine:[ERROR_BUNDLE_PATH_OR_FILE] & Error while Deploying HAP
Error Messages:

Launching com.mosr.myapplication
$ hdc shell am force-stop com.mosr.myapplication
$ hdc shell bm uninstall com.mosr.myapplication
$ hdc file send F:\HarmonyProjects\MyApplication\list\build\outputs\hap\debug\list-entry-debug-rich-signed.hap /sdcard/c238ee6328cc48d69d0471eb05eff6e7/list-entry-debug-rich-signed.hap
$ hdc shell bm install -p /sdcard/c238ee6328cc48d69d0471eb05eff6e7/
[ERROR_BUNDLE_PATH_OR_FILE]
$ hdc shell rm -rf /sdcard/c238ee6328cc48d69d0471eb05eff6e7
Error while Deploying HAP

Tester: Huawei mate9, harmony OS2 0.0 (version No.: 2.0.0.125)

There is no solution, and the system version does not support it. It is recommended to use remote virtual machines and remote real machines in harmony OS device manager.

[Solved] Error while deploying HAP reported by Hongmeng deveco studio

It’s been a long time since I used DevEco-Studio, and today I ran a demo that reported an error, which I didn’t want to do.
Error message.
$ hdc file send /Users/likai/DevEcoStudioProjects/player/entry/build/outputs/hap/debug/entry-debug-unsigned.hap /sdcard/1bde11bbf51f4783a54e2e3616f6a0cd/entry-debug-unsigned.hap
$ hdc shell bm install -p /sdcard/1bde11bbf51f4783a54e2e3616f6a0cd/
Failure[INSTALL_PARSE_FAILED_USESDK_ERROR]
$ hdc shell rm -rf /sdcard/1bde11bbf51f4783a54e2e3616f6a0cd
Error while Deploying HAP
Solution.
Find the project’s configuration file config.json, open it and delete “releaseType”: “Beta1” , then run the perfect solution