Error:run after build is not possible main file has non-main package or doesn't contain main functi

goland编译报错:
Error:run after build is not possible
main file has non-main package or doesn’t contain main function

解决方案:检查包名是不是:main 函数

学习初期低级错误很容易发生

猜你喜欢

转载自blog.csdn.net/oNuoZuo/article/details/104968310