openharmony 鸿蒙 externaldevice-faqs

2025-06-06 浏览 (1)

FAQs

Failed to Find the Header File During Compilation or Running

Symptom

The message "usb/usb_ddk_api.h not found" or "hid/hid_ddk_api.h not found" is displayed during compilation or running.

Solution

  • If an error is reported during compilation, check whether the OpenHarmony version is the latest.
  • If an error is reported during running, check whether the device version is 4.1 Release or later.

Version Mismatch Displayed During HAP Installation

Symptom

The message "compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the device" is displayed during HAP installation.

Solution

Check whether the system version of the device is correct according to the mapping provided in [Version Mapping](#version-mapping).

Version Mapping

API TypeMinimum API VersionOpenHarmony Version
Application development APIs (ArkTS APIs)API104.0 Release or later
USB DDK APIsAPI104.0 Release or later
HID DDK APIsAPI114.0 Release or later
USB Serial DDK APIAPI185.1 Release or later
SCSI Peripheral DDK APIAPI185.1 Release or later

Failed to Parse the Local .so File During HAP Installation

Symptom

The message "code:9568347 error: install parse native so failed" is displayed during HAP installation.

Solution

Configure the value of abiFilters in buildOption/externalNativeOptions in the build-profile.json5 file. For details, see [Application Debugging] (https://developer.huawei.com/consumer/en/doc/harmonyos-faqs-V5/faqs-app-debugging-14-V5).

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Driver Development Kit

harmony 鸿蒙Introduction to Driver Development Kit

harmony 鸿蒙UI-free Driver Development

harmony 鸿蒙Setting Up the Environment

harmony 鸿蒙UI-based Driver Development

harmony 鸿蒙HID DDK Development

harmony 鸿蒙SCSI Peripheral DDK Development

harmony 鸿蒙Terms

harmony 鸿蒙USB DDK Development

harmony 鸿蒙USB Serial DDK Development

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/hLlW5a