Solve the problem that IDEA introduces GO SDK and cannot load local Go. The selected directory is not a valid home for Go SDK

Solve the problem that IDEA introduces GO SDK and cannot load local Go. The selected directory is not a valid home for Go SDK

Insert image description here
Solution:

Find the corresponding go directory:
C:\Program Files\go\go1.20.4\src\runtime\internal\sys There is a file name " zversion.go "
to edit the file

const TheVersion = `go1.20.4`

Insert image description here
Configure your own corresponding version and save it

Just re-introduce the SDK

As shown below
Insert image description here

Wish you good luck and hope it helps you solve your problem. Remember to like it~~

Guess you like

Origin blog.csdn.net/weixin_43829047/article/details/131131170