简体   繁体   English

Android版Unity中的Facebook SDK“编辑​​设置”错误

[英]Facebook SDK “Edit Settings” errors in Unity for Android

I'm currently developing an Android game with Unity using the Facebook SDK. 我目前正在使用Facebook SDK使用Unity开发Android游戏。

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". 我应该能够打开一个名为“编辑设置”的检查器窗口,并在下拉菜单“ Android Build Facebook Settings”中更改属性。

What happens to me is this: 我发生的事情是这样的:

http://www.i.imgur.com/L9SOJZl.png 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. 我已经下载并正确安装了Facebook SDK的最新版本(非Beta版)。
  • The latest version of Unity 4.3.4f1 最新版本的Unity 4.3.4f1
  • I have the Android SDK installed and I can build successfully to a device. 我已经安装了Android SDK,并且可以成功构建到设备上。
  • I have the Java Runtime Environment and Development Kit installed. 我已经安装了Java Runtime Environment and Development Kit。
  • ^^^ Tried both 32bit and 64bit ^^^尝试了32位和64位
  • I have my Environment Variable "PATH" pointing to the JDK install directory. 我的环境变量“ PATH”指向JDK安装目录。
  • I have installed 32 and 64 bit OpenSSL and still had no success. 我已经安装了32位和64位OpenSSL,但仍然没有成功。

The full error code is as follows. 完整的错误代码如下。

Win32Exception: ApplicationName='cmd', CommandLine='/Cecho "xxx" | 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) openssl base64',CurrentDirectory =''System.Diagnostics.Process.Start_noshell(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics.Process进程)System.Diagnostics.Process.Start_common(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics.Process进程)System.Diagnostics.Process.Start()(包装器远程调用检查)System.Diagnostics.Process:Start()UnityEditor.FacebookEditor.FacebookAndroidUtil.DoesCommandExist(System.String命令)(在Assets / Facebook / Editor中) /android/FacebookAndroidUtil.cs:134)UnityEditor.FacebookEditor.FacebookAndroidUtil.get_DebugKeyHash()(在Assets / Facebook / Editor / android / FacebookAndroidUtil.cs:41)UnityEditor.FacebookEditor.FacebookAndroidUtil.IsSetupProperly()(在Assets / Facebook / Editor中) /android/FacebookAndroidUtil.cs:22)FacebookSettingsEditor.AndroidUtilGUI()(在Assets / Facebook / Editor / FacebookSettingsEditor.cs:142)FacebookSettingsEditor.OnInspectorGUI()(在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() UnityEditor.InspectorWindow.DrawEditors(布尔isRepaintEvent,UnityEditor.Editor []编辑器,布尔eyeDropperDirty)(位于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: 我解决了添加环境变量“ C:\\ Windows \\ System32”的示例:

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

I've solved creating a .bat file like this: 我解决了创建这样的.bat文件的问题:

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 似乎是从Unity无法正确读取ENV VARS的问题注意:我在Unity 4.3.4f1下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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