harmonyOs应用开发,报 “when the corresponding visual file exists, the build function of the entry component must be empty.
这是因为:
您创建工程时勾选“Enable Super Visual”(如下图),检查您的工程中是否存在“entry\src\main\supervisual”目录,若存在表示您的工程为低码工程,(即你确实是勾选了),低码工程开发时您可在“supervisual\MainAbility\pages\index.visual”中进行您的首页开发,组件可直接使用拖拽方式;进行低码工程开发时,那么您对应的index.ets文件入口组件的构建函数必须为空。
解决方法:
【腾讯文档】harmonyOs开发,报 “when the corresponding visual file exists, the build function of the entry component错误
文章末尾固定信息
artcgdesign
我的微信公众号
微信扫一扫
评论