我现在正在为我的游戏创建一个密钥库(统一),但是当我按下添加键按钮时,会弹出一个错误
Java开发工具包(JDK)目录未设置或无效。请在首选项->外部工具中对其进行修复 UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)(位于/Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
I installed the JDK and checked the path of it in the terminal using the command /usr/libexec/java_home
, then it shows me that the path of the JDK is /Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home
.
我将其复制并粘贴到JDK路径中,但是仍然弹出错误。 我实际上检查了计算机库中的JavaVirtualMachines,但其中没有任何内容。
我怎么解决这个问题?任何帮助是极大的赞赏。