错误说明 Error:run after build is not possible/main file has non-main package or doesn’t contain main functio 包名与main函数名称不一致。如下图: 将包名改为主函数名即可解决问题。