错误现象:

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. 转录组测序和RNA-seq
  2. linux 3.0 kernel
  3. 【剑指offer】面试题 5. 替换空格
  4. php页面栏目访问权限,PHPCMS 栏目和内容浏览权限的解决方法
  5. TLS1.3握手流程以及参数详解
  6. 利用Helm简化Kubernetes应用部署(2)
  7. 大数据预测实战-随机森林预测实战(三)-数据与特征对模型的影响
  8. python找字符串中特殊字符_python – 在字符串中查找特殊符号
  9. 静态tableview组背景色的更改及自定义cell的两种方式
  10. 劲牌——业务流程管理方案
  11. keil生成bin文件
  12. 每秒浮点运算次数FLOPS
  13. python编程加减法_python编程题关于二进制加减法运算解析
  14. Odoo CRM获福布斯评为《2022最佳开源CRM》
  15. java的下标循环_java的for下标循环遍历和foreach循环遍历测试
  16. oracle sql查数据是否有重复
  17. 《Python程序设计》python常用的格式转换
  18. C语言中 \ 的作用
  19. Unity如何实现3D物体拆解组装
  20. opencv_contrib安装教程

热门文章

  1. 5G 信令流程 — MM 定时器
  2. 5G NGC — 会话管理模型 — 边缘业务本地分流
  3. JavaScript实现在线进制转换工具网站 -toolfk程序员在线工具网
  4. 【翻译自mos文章】怎么正确的计算一个ip地址的subnet id?
  5. [汇编与C语言关系]2. main函数与启动例程
  6. eclipse 快捷键汇总
  7. 关于matlab中的梯度使用
  8. Android之使用Jsoup抓取网络数据
  9. Delphi下使用指针的简单总结
  10. 设计模式 之 命令模式