从网上下载下来的代码可能会无法直接运行,需要配置一下Configuration
问题如下
No module found. Make sure the project sync is completed successfully and the module is set in Edit Configuration > General.
1.首选点击模拟器旁边的add Configurations... 选择 Edit Configurations... 选择openharmonyOS 在name那里输入entry 如图所示即可解决问题