DaveRune
DaveRune

Reputation: 21

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.

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?

Upvotes: 2

Views: 4504

Answers (2)

Impharto
Impharto

Reputation: 41

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

Upvotes: 4

Filanico
Filanico

Reputation: 11

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

Upvotes: 0

Related Questions