为什么我无法在 windows 中编辑或创建系统变量?

why i am not able to edit or create system variables in windows?

我试图按照 youtube 中的 this video 为我的系统设置 GRADLE_HOME 系统变量。我是管理员用户,也是我系统中的唯一用户。

enter image description here

这张图片是我桌面的截图。如您所见,我无法创建或编辑系统变量

有人能告诉我如何解决这个问题吗?

按windows键并输入env,第一个结果应该是"Edit the system environment variables"。单击它应该会直接将您带到 "System Properties",您可以在其中单击右下角的 "Environment Variables..."。在那里你应该能够更改系统变量。

或者您可以 运行 regedit 并且变量在 Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

(Win+X -> Y),进入“高级系统设置”,然后点击“环境变量”。 select 正确启动编辑的系统变量 window 并且有效。