将Facebook SDK添加到Unity中后,出现此错误,并且Android Build Facebook设置arent显示下拉列表。
Win32Exception: ApplicationName='cmd', CommandLine='/Cecho "xxx" | openssl base64', CurrentDirectory='', Native error= The system cannot find the file specified.
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <3845a180c26b4889bc2d47593a665814>:0)
System.Diagnostics.Process.Start () (at <3845a180c26b4889bc2d47593a665814>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
Facebook.Unity.Editor.FacebookAndroidUtil.DoesCommandExist (System.String command) (at <1e648b4081db4625b06f95d668cd2dd4>:0)
Facebook.Unity.Editor.FacebookAndroidUtil.get_DebugKeyHash () (at <1e648b4081db4625b06f95d668cd2dd4>:0)
Facebook.Unity.Editor.FacebookAndroidUtil.get_SetupProperly () (at <1e648b4081db4625b06f95d668cd2dd4>:0)
Facebook.Unity.Editor.FacebookSettingsEditor.AndroidUtilGUI () (at <1e648b4081db4625b06f95d668cd2dd4>:0)
Facebook.Unity.Editor.FacebookSettingsEditor.OnInspectorGUI () (at <1e648b4081db4625b06f95d668cd2dd4>:0)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1625)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
答案 0 :(得分:0)
安装openSSL https://www.openssl.org/
我解决了添加环境变量“ C:\ Windows \ System32”的示例:
路径= C:\ Windows \ System32; C:\ Program Files \ Java \ jdk1.7.0_51 \ bin; C:\ OpenSSL \ bin
请确保按正确的顺序添加它们
ref:“ Facebook SDK "Edit Settings" errors in Unity for Android”