【问题标题】:How to fin Win32Exception Error when adding Facebook SDK to Unity?将 Facebook SDK 添加到 Unity 时如何解决 Win32Exception 错误?
【发布时间】:2019-04-15 19:08:18
【问题描述】:

将 Facebook SDK 添加到 Unity 后,我收到此错误,并且 Android Build Facebook 设置没有显示下拉菜单。

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)

【问题讨论】:

    标签: facebook unity3d facebook-sdk-4.0


    【解决方案1】:

    安装openSSLhttps://www.openssl.org/

    我解决了添加环境变量“C:\Windows\System32”的例子:

    路径 = C:\Windows\System32;C:\Program Files\Java\jdk1.7.0_51\bin;C:\OpenSSL\bin

    请务必按确切顺序添加它们

    参考:“Facebook SDK "Edit Settings" errors in Unity for Android

    【讨论】:

      猜你喜欢
      • 2017-02-26
      • 2023-03-07
      • 1970-01-01
      • 2014-12-17
      • 1970-01-01
      • 2015-08-09
      • 1970-01-01
      • 2015-08-12
      • 1970-01-01
      相关资源
      最近更新 更多