无法导入 fyne.io/fyne/v2/app(没有提供所需模块的包 “fyne.io/fyne/v2/app”)

huangapple go评论80阅读模式
英文:

could not import fyne.io/fyne/v2/app (no required module provides package "fyne.io/fyne/v2/app")

问题

我在编译代码时遇到了这个问题,我不知道为什么会发生这种情况,因为我已经在环境变量中设置了GOPATH和GOROOT。

图片链接:点击这里

英文:

I am facing this issue while compiling the code, I don't know why this is happening because I have set GOPATH AND GOROOT in environmental variable.

无法导入 fyne.io/fyne/v2/app(没有提供所需模块的包 “fyne.io/fyne/v2/app”)

答案1

得分: 1

你是否执行了go get fyne.io/fyne/v2命令以便在你的代码中导入它?
请参考https://github.com/fyne-io/fyne中的先决条件部分获取更多信息。

英文:

Did you do: go get fyne.io/fyne/v2 to be able to import it in your code?
See Prerequisites in https://github.com/fyne-io/fyne for more information

huangapple
  • 本文由 发表于 2021年10月16日 17:28:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/69594318.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定