错误现象:

Error: Run after build is not possible Main file has non-main package or doesn't contain main function

解决方法:

原因:源码需要建立在src目录下, 启动入口包名需要是main

goland 报错 Main file has non-main package or doesn’t contain main function相关推荐

  1. IAR STM32工程报错Error[Pe020]: identifier “GPIO_Pin_0”is undefined D:\STM32F103_Demo\App\main.c

    IAR STM32工程报错: Error[Pe020]: identifier "GPIO_Pin_0" is undefined D:\STM32F103_Demo\App\ma ...

  2. ubuntu makefile交叉编译报错:file not recognized: file format not recognized

    在linux ubuntu上编译netkit-ftp的时候报错:file not recognized: file format not recognized [root@ubuntu /arnold ...

  3. Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute permission

    为什么80%的码农都做不了架构师?>>>    Linux下启动启动tomcat 服务器报错 The file is absent or does not have execute ...

  4. ionic ios查看大图报错 the file to show is not valid image,or could not be loaded

    ionic ios查看大图报错 the file to show is not valid image,or could not be loaded 解决代码如下 public showImage(u ...

  5. 【总结】ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase

    ElasticSearch 安装启动报错max file descriptors [32768] for elasticsearch process is too low, increase to a ...

  6. iOS 解决报错 Module file /Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM...

    报错 Module file '/Users/anmo/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/3FOJ1MTM36H3U/Co ...

  7. CAJ文件报错提示“file does not exist”之类如何解决

    我在使用7.2版本的CAJ阅读器查看CAJ文件的时候,无论打开什么文件,都会报错"the file does not exist"之类的提示:然而在无意间的搜索中,我想起(至少在该 ...

  8. centos 7.2执行yum -y install报错Metadata file does not match checksum

    分析结论 1,Metadata file does not match checksum报错在于元文件的校验值与元文件不匹配 2,元数据是指 mnt/repodata/436345f4b666f0a4 ...

  9. adb push报错‘read-only file system‘

    使用bat脚本,执行对android设备文件的覆盖 @echo off adb root adb push hosts /etc/ pause adb已经获取到root权限,当尝试替换/etc/hos ...

  10. ffmpeg合并文件报错Unsafe file name Operation not permitted

    ffmpeg合并文件报错 Unsafe file name '/data/hk_sdk/demo/aaa.mp4' /data/hk_sdk/demo/test.txt: Operation not ...

最新文章

  1. R语言Brown-Forsythe检验验证组间方差是否相等实战:执行Brown-Forsythe检验、如果各组间的方差不相等我们该怎么办(进行方差分析)
  2. YouTube增加社交功能:邀请联系人聊天 可30人群聊
  3. mysql deadlock found when trying to get lock 问题排查
  4. 如何自定义SAP Spartacus 产品明细的url pattern
  5. html5画布funcition,2020前端基础知识学习第一节(示例代码)
  6. C++基础17-纯虚函数和抽象类
  7. 前端如何实现网络速度测试功能_前端组件单元测试
  8. 男人在35岁之前最好的投资
  9. 什么是.NET Framework
  10. 在controller类的每个方法执行前调用某个方法_springboot:异步调用@Async
  11. 水晶报表中对某一栏位值进行处理_终于有人讲清楚了,BI和报表的差异!
  12. java基础5 (一维)数组和二维数组
  13. 【图像处理】基于matlab GUI图像处理(编辑+分析+调整+平滑+锐化+小波变换)【含Matlab源码 207期】
  14. python照片过人脸_python图片人脸检测
  15. 电脑博主fps测试软件,APP性能测试—帧率
  16. AcWing 188 武士风度的牛 题解(BFS)
  17. data mining - 实用机器学习工具与技术 - 读书笔记( 一 )
  18. NSSCTF刷题wp——单表替换密码
  19. PHP与memcached实战
  20. 线性代数——方阵的行列式、伴随矩阵、逆矩阵

热门文章

  1. Linux_SELinux使用
  2. 在pycharm中安装第三方库
  3. 写个测试程序测试下,单片机使用浮点型数效率有多低
  4. altium designer怎么在原理图中批量修改元件封装
  5. SSM 实现支付宝支付功能(图文详解+完整代码)
  6. 实验5 编写调试有多个段的程序
  7. Unix Domain Socket 域套接字实现
  8. VMware View是如何帮助企业省钱的
  9. Oracle单实例打补丁
  10. Kubernetes - - k8s - v1.12.3 动态存储管理GlusterFS及使用Heketi扩容GlusterFS集群