La importación del SDK de Facebook 7.18.0 (descargado del sitio web oficial) a un proyecto Unity 2019.3.0f3 vacío hace que se bloquee con el siguiente error:
ArgumentException: Requested value 'X86' was not found.
System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Enum.Parse (System.Type enumType, System.String value) (at <437ba245d8404784b9fbab9b439ac908>:0)
GooglePlayServices.AndroidAbis.EnumValueStringToULong (System.Type enumType, System.String enumValueString) (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/AndroidAbis.cs:182)
GooglePlayServices.AndroidAbis.get_Current () (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/AndroidAbis.cs:241)
GooglePlayServices.PlayServicesResolver.PollAndroidAbis () (at /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/PlayServicesResolver.cs:1126)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Delegate.DynamicInvoke (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:310)
También se bloquea cada vez que intenta abrir el proyecto, e independientemente de si intenta actualizar las API obsoletas o no.
¿Hay alguna solución para esto?
No está claro si el SDK aún se está actualizando. ¿Estás en Windows o Mac?
OS X 10.15.1.
Eso es lamentable ... ¿Hay otras alternativas además de la API REST?
@michelleran Creo que el problema proviene del subdirectorio PlayServicesResolver
; Facebook Unity SDK v7.18 actualmente usa Play Services Resolver v1.2.95 (confirme https://github.com/facebook/facebook-sdk-for-unity/commit/17849bc0d9352a82538ffc72b73e7d490953aeff). Actualizar el solucionador a
Esto debería funcionar para usted, con suerte:
Gracias @ rahil-p, ¡eso solucionó el bloqueo! Pero cuando trato de construir la escena MainMenu proporcionada, aparece este error:
Error building Player: Component GUI Layer in Main Camera for Scene Assets/FacebookSDK/Examples/MainMenu.unity is no longer available.
It will be removed after you edit this GameObject and save the Scene.
¿Alguna sugerencia?
Comentario más útil
Gracias @ rahil-p, ¡eso solucionó el bloqueo! Pero cuando trato de construir la escena MainMenu proporcionada, aparece este error:
¿Alguna sugerencia?