HarmonyOS 鸿蒙Next previewer 出现这个问题怎么办

HarmonyOS 鸿蒙Next previewer 出现这个问题怎么办 基于IDE的端云一体化系统示例开发,previewer 用着用着就毁灭了项目文件

image.png

image.png


更多关于HarmonyOS 鸿蒙Next previewer 出现这个问题怎么办的实战教程也可以访问 https://www.itying.com/category-93-b0.html

6 回复

已解决:手动把 .js .js.map 的文件删除后,重新 build 项目会报 hvigor 构建错误,如下:

[Compile Result]  the size of programs is expected to be 165, but is 164
[Compile Result] Compile error occurred. Fix it based on the above message.

我自己的决解方式就是把PC的用户文件夹和项目文件夹下的 .hvigor 删掉,让IDE重新生成。再把项目依赖 /oh_modules 全删掉,IDE重新生成。

试了几次,大概率是依赖的 /oh_modules 出了问题

更多关于HarmonyOS 鸿蒙Next previewer 出现这个问题怎么办的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


直接删除然后重启就行,这属于是idea的bug,

Compile Result: the size of programs is expected to be 165, but is 164
Compile Result: Compile error occurred. Fix it based on the above message.

这个我也不太清楚,抱歉,
DevEco Studio 3.1.1 Release
Build Version: 3.1.0.501, built on June 20, 2023
Build #DS-223.8617.56.36.310501
Runtime version: 17.0.6+10-b829.5 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1536M
Cores: 20
Registry:
  external.system.auto.import.disabled=true

HarmonyOS鸿蒙Next预览器出现问题,首先检查系统版本是否为最新版,确保与预览器兼容。如果问题依旧,尝试清理缓存或重新安装预览器。确认设备是否支持该功能,部分问题可能源于硬件限制。如果问题持续,查看官方文档或社区论坛,寻找类似问题的解决方案。确保开发环境配置正确,包括SDK和IDE版本。如果问题仍未解决,考虑提交错误报告,附上日志文件以便进一步分析。

回到顶部