Skip to content

鸿蒙Taro出错 #18338

@wangcongccc221

Description

@wangcongccc221

请先确认

  • 我已搜索并确定这个提交不是重复的

Taro 版本

v4

相关领域

运行时

使用框架

React

相关平台

  • 所有平台
  • Web 端(H5)
  • 移动端(React-Native)
  • 鸿蒙(Harmony)
  • 鸿蒙容器(Harmony Hybrid)
  • ASCF 元服务
  • 快应用(QuickApp)
  • 所有小程序
  • 微信小程序
  • 企业微信小程序
  • 京东小程序
  • 百度小程序
  • 支付宝小程序
  • 支付宝 IOT 小程序
  • 头条小程序
  • QQ 小程序
  • 钉钉小程序
  • 飞书小程序
  • 快手小程序

小程序基础库版本

No response

问题描述

我跟着https://docs.taro.zone/docs/harmony/c-api一步一步走,安装的是4.1.1版本,harmony 插件也是4.1.1 编译正常,最后运行的时候显示:
Install Failed: error: failed to install bundle.
code:9568347
error: install parse native so failed.
View detailed instructions.
19:25:11.762: $ hdc shell rm -rf data/local/tmp/d94c9aa56b5349f693423e83cce01d31
19:25:11.763: Launch com.nutpi.taro failed, starting handle failure progress
Error while Deploy Hap

我已经成功的登陆了账号,不知道问题出现在哪里 想请问一下。

Image

复现链接

https://gitee.com/wang-cong00111/myself.git

复现步骤

1.taro build --type harmony_cpp 编译项目之后在鸿蒙上运行
2.然后会出现
Install Failed: error: failed to install bundle.
code:9568347
error: install parse native so failed.
View detailed instructions.
19:25:11.762: $ hdc shell rm -rf data/local/tmp/d94c9aa56b5349f693423e83cce01d31
19:25:11.763: Launch com.nutpi.taro failed, starting handle failure progress
Error while Deploy Hap

环境信息

C:\Users\AI008\Desktop\taro-ohos>npx taro info
👽 Taro v4.1.1


  Taro CLI 4.1.1 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 24.8.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 11.6.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.1.1 => 4.1.1
      @tarojs/components: 4.1.1 => 4.1.1
      @tarojs/helper: 4.1.1 => 4.1.1
      @tarojs/plugin-framework-react: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-alipay: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-h5: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-harmony-hybrid: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-jd: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-qq: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-swan: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-tt: 4.1.1 => 4.1.1
      @tarojs/plugin-platform-weapp: 4.1.1 => 4.1.1
      @tarojs/react: 4.1.1 => 4.1.1
      @tarojs/runtime: 4.1.1 => 4.1.1
      @tarojs/shared: 4.1.1 => 4.1.1
      @tarojs/taro: 4.1.1 => 4.1.1
      @tarojs/vite-runner: 4.1.1 => 4.1.1
      babel-preset-taro: 4.1.1 => 4.1.1
      eslint-config-taro: 4.1.1 => 4.1.1
      react: ^18.0.0 => 18.3.1

开源贡献

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea - 运行时相关F-reactFramework - ReactT-harmonyTarget - 编译到 HarmonyV-4Version - 4.xbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions