يؤدي استيراد Facebook SDK 7.18.0 (تم تنزيله من الموقع الرسمي) إلى مشروع Unity 2019.3.0f3 الفارغ إلى تعطله بسبب الخطأ التالي:
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)
كما أنه يتعطل كلما حاولت فتح المشروع ، وبغض النظر عما إذا كنت تحاول تحديث واجهات برمجة التطبيقات القديمة أم لا.
هل هناك إصلاح لهذه؟
ليس من الواضح ما إذا كانت SDK لا تزال قيد التحديث. هل تستخدم نظام التشغيل Windows أو Mac؟
OS X 10.15.1.
هذا أمر مؤسف ... هل هناك أي بدائل بخلاف واجهة برمجة تطبيقات REST؟
michelleran أعتقد أن المشكلة تنبع من الدليل الفرعي PlayServicesResolver
؛ يستخدم Facebook Unity SDK v7.18 حاليًا Play Services Resolver v1.2.95 (الالتزام https://github.com/facebook/facebook-sdk-for-unity/commit/17849bc0d9352a82538ffc72b73e7d490953aeff). يجب أن تؤدي ترقية وحدة الحل إلى
يجب أن يعمل هذا من أجلك ، ونأمل أن:
بفضل @ rahil-p ، هذا أصلح التحطم! ولكن عندما أحاول إنشاء مشهد MainMenu المقدم ، فإنه يعطي هذا الخطأ:
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.
أي مؤشرات؟
التعليق الأكثر فائدة
بفضل @ rahil-p ، هذا أصلح التحطم! ولكن عندما أحاول إنشاء مشهد MainMenu المقدم ، فإنه يعطي هذا الخطأ:
أي مؤشرات؟