简体   繁体   中英

Facebook SDK “Edit Settings” errors in Unity for Android

I'm currently developing an Android game with Unity using the Facebook SDK.

What I should be able to is open an inspector window titled "Edit Settings" and change properties in the dropdown menu "Android Build Facebook Settings".

What happens to me is this:

http://www.i.imgur.com/L9SOJZl.png

My dropdown menu is totally blank and the console is spammed with the same error repeatedly.

  • I have the latest version (non-beta) of the Facebook SDK downloaded and installed correctly.
  • The latest version of Unity 4.3.4f1
  • I have the Android SDK installed and I can build successfully to a device.
  • I have the Java Runtime Environment and Development Kit installed.
  • ^^^ Tried both 32bit and 64bit
  • I have my Environment Variable "PATH" pointing to the JDK install directory.
  • I have installed 32 and 64 bit OpenSSL and still had no success.

The full error code is as follows.

Win32Exception: ApplicationName='cmd', CommandLine='/Cecho "xxx" | openssl base64', CurrentDirectory='' System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) System.Diagnostics.Process.Start () (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start () UnityEditor.FacebookEditor.FacebookAndroidUtil.DoesCommandExist (System.String command) (at Assets/Facebook/Editor/android/FacebookAndroidUtil.cs:134) UnityEditor.FacebookEditor.FacebookAndroidUtil.get_DebugKeyHash () (at Assets/Facebook/Editor/android/FacebookAndroidUtil.cs:41) UnityEditor.FacebookEditor.FacebookAndroidUtil.IsSetupProperly () (at Assets/Facebook/Editor/android/FacebookAndroidUtil.cs:22) FacebookSettingsEditor.AndroidUtilGUI () (at Assets/Facebook/Editor/FacebookSettingsEditor.cs:142) FacebookSettingsEditor.OnInspectorGUI () (at Assets/Facebook/Editor/FacebookSettingsEditor.cs:42) UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/Inspector/InspectorWindow.cs:850) UnityEditor.DockArea:OnGUI()

Does anyone have any ideas?

I Solved Adding in Enviroment variable "C:\\Windows\\System32" example:

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

I've solved creating a .bat file like this:

SET PATH=<path-to-openssl>;<path-to-jdk>\bin
"C:\Program Files (x86)\Unity\Editor\Unity.exe"

It seems to be a problem of ENV VARS not properly read from Unity NOTE: i'm under Unity 4.3.4f1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM