当前位置:   article > 正文

鸿蒙开发:每天一个小bug the size of programs is expected to be 3, but is 2_[compile result] compile error occurred. fix it ba

[compile result] compile error occurred. fix it based on the above message.

鸿蒙app开发问题一: [Compile Result] the size of programs is expected to be 3, but is 2 [Compile Result] Compile error occurred. Fix it based on the above message.


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

作为新手小白,开始尝试学习鸿蒙app的开发,在开发过程中最常见的不是代码的敲写,而是bug的出现,第一天写就遇见了bug,果然是天选码农!简单记录一下,也帮助其他人解决问题,当然解决办法不是唯一,但是自己尝试出来的。

错误代码

[Compile Result] Failed to read file to buffer: D:/huawei/dome/entry/.preview/cache/temporary/pages/案例.js
[Compile Result] the size of programs is expected to be 3, but is 2
[Compile Result] Compile error occurred. Fix it based on the above message.
  • 1
  • 2
  • 3

解决办法

貌似鸿蒙开发不支持使用中文命名,所以需要修改文件名为英文,就可以完成运行了。

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号