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文件入口组件的构建函数必须为空。
若不需要使用低码开发您的应用,可不勾选“Enable Super Visual”,即可在index.ets中进行高码开发,即手写相关代码开发您的应用。