OpenHarmony开发者论坛

标题: OpenHarmony5.0项目,运行过程中偶现报错:The deviceType or apiVersion of the target device does not match that configured in the module.json5 file. [打印本页]

作者: 诚迈-小语哥    时间: 2024-8-21 16:14
标题: OpenHarmony5.0项目,运行过程中偶现报错:The deviceType or apiVersion of the target device does not match that configured in the module.json5 file.
【问题描述】
OpenHarmony5.0项目,运行在自己烧录的开发板上,之前一直都能正常运行,没改任何代码的情况下,过段时间再次运行就报错

报错信息:The deviceType or apiVersion of the target device does not match that configured in the module.json5 file.


相关的代码,截图,日志信息
(, 下载次数: 0) (, 下载次数: 0)


我尝试过的解决方法和结果
PAD重启、clean、Rebuild项目都无效

我想要达到的结果
恢复正常运行,不再出现这个错误提示

【运行环境】
硬件:OpenHarmony5.0.0.24
DevEvoStudio版本:5.0.3.402
SDK版本:12

作者: 诚迈-小语哥    时间: 2024-8-22 10:35
RK3568的开发板上是烧录的5.0镜像...
作者: 诚迈-陆志刚    时间: 2024-8-26 15:58
看你的代码配置应该没有问题,如果确认之前能安装运行,并且代码没有改过、设备没有换过,那大概率是开发板上的5.0镜像有问题,建议多重启几次试一试,还是不行的话就重新烧录镜像。

我这边5.0的开发板上正常运行  没遇到这个问题。
作者: 鸿蒙小语哥    时间: 2024-8-26 16:33
回复 诚迈-陆志刚: 前两天已经解决了:没发现镜像哪里有问题,但是用同一个镜像,重新烧录一遍之后好了。





欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5