【FAQ】OpenHarmony开发板运行HAP应用,报错ERR_APPEXECFWK_INSTALL_FAILED_PARSE_DEVICETYPE_ERROR
2023-09-11 14:17:16 时间
【问题描述】
基于BearPi-HM Micro开发板开发OpenHarmony应用,在安装HAP到开发板时,发生错误:
ERR_APPEXECFWK_INSTALL_FAILED_PARSE_DEVICETYPE_ERROR
针对这个问题应该是Config.json中的deviceType配置有问题,参考小熊派的应用代码修改deviceType为“smartVision”后IDE报红。
【解决方案】
在高版本的DevEco中需要创建Lite工程才能支持“smartVision”,但是创建工程时选择OpenHarmony没有Lite工程的选项
需要选择HarmonyOS工程才能创建Lite工程:
欲了解更多更全技术文章,欢迎访问https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
相关文章
- 反序列化失败Failed to deserialize --- local class incompatible: stream classdesc serialVersionUID
- Failed to stop iptables.service: Unit iptables.service not loaded.
- centos7重启网卡报Job for network.service failed because...错误
- CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED]
- keras 下载预训练模型报错SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
- TNS-12545: Connect failed because target host or object does not exist
- pip install mysqlclient报错: error: command ‘gcc‘ failed with exit status 1 OSError: mysql_config no
- SAP云平台部署HTML5应用时的错误消息Failed to report quota consumption
- Android【报错】Failed to resolve: com.android.support:appcompat-v7:28.0.0-alpha【报错】
- Installation failed with message INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.datab.cn signatures
- Android报错提示:Failed to resolve: com.android.support.constraint:constraint-layout:1.1.3
- 成功解决urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- 完美解决Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource的问题
- ADB Server Didn’t ACK ,failed to Start Daemon 解决方法
- SpringBoot获取数据源出现错误:Failed to load ApplicationContext
- rtk_coex.c中的两个“Page failed“问题
- Win10解决Android Studio:Gradle sync failed: Failed to open zip file.
- [Git & GitHub] 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'