تحديد الأخطاء الشائعة وحلّها

تحتوي هذه الصفحة على معلومات حول كيفية تشخيص الأخطاء الشائعة وإصلاحها. من المهم مقسّمًا إلى أقسام استنادًا إلى رموز الخطأ ورسائل السجل.

رمز الاستجابة 400

Connecting to: https://performanceparameters.googleapis.com/v1/applications/...
TuningFork:Web: Response code: 400
TuningFork:Web: Response message: Bad

يمكنك أن يظهر لك هذا الخطأ إذا كان مفتاح واجهة برمجة التطبيقات غير صالح. عرض تفعيل واجهة برمجة التطبيقات والقسم إعداد المكوّن الإضافي.

رمز الاستجابة 403

TuningFork:Web: Connecting to: https://performanceparameters.googleapis.com/v1/applications/...:generateTuningParameters
TuningFork:Web: Response code: 403
TuningFork:Web: Response message: Forbidden

يمكنك الحصول على هذا الخطأ إذا لم يتم تفعيل مفتاح واجهة برمجة التطبيقات أو إذا ارتكبت خطأً: تقييد مفتاح واجهة برمجة التطبيقات (على سبيل المثال، استخدمت شهادة أو تجزئة خاطئة ). راجِع تفعيل واجهة برمجة التطبيقات.

"ما مِن مَعلمات: ما مِن مَعلَمات للدقّة" التحذير و"java.lang.NoSuchFieldError" كما هو موضح في السجلات

TuningFork:FPDownload: No parameters: no fidelity parameters
TuningFork: java.lang.NoSuchFieldError: no "[Landroid/content/pm/ApplicationInfo;" field "applicationInfo" in class "Landroid/content/pm/PackageInfo;" or its superclasses
TuningFork: Could not get fidelity params from server : err = 4

هذه تحذيرات غير ضارة تصدر من مكتبة "الشوكة الرنانة" عندما للتحقّق ممّا إذا كان قد تمّ ضبط العلامات القابلة للتصحيح في التطبيق. على الرغم من أنها مطولة، إلا أنها غير ضارة ولا تشير إلى وجود مشكلة في دمج المكتبة. ويمكنك تجاهل هذه التحذيرات.

ملفات Google.Protobuf.dll متعددة

PrecompiledAssemblyException: Multiple precompiled assemblies with the same name
Google.Protobuf.dll included for the current platform.
Only one assembly with the same name is allowed per platform. Assembly paths: ...

Error: The imported type `Google.Protobuf.IMessage<T>' is defined multiple times

يمكن أن تحصل على أحد هذه الأخطاء إذا كان مشروعك يحتوي على عدة أخطاء ملفان (Google.Protobuf.dll). يجب إزالة أحد الملفات البالغ عددها .dll لحلّ هذه المشكلة. نزاع.

جارٍ محاولة استدعاء طريقة ... التي لم يتم إنشاء رمز AOT مسبقًا لها

ExecutionEngineException: Attempting to call method 'Google.Protobuf.Reflection.ReflectionUtil+ReflectionHelper' ... for which no ahead of time (AOT) code was generated.

يمكنك أن يظهر لك هذا الخطأ في بعض إصدارات Unity. يحدث هذا الخطأ في حال تفعيل ميزة AOT فإن برنامج التحويل البرمجي لا ينشئ تعليمة برمجية للطرق العامة. للحصول على معلومات حول كيفية فرض إنشاء الرمز المطلوب، راجع القسم التجميع المسبق (AOT):

النوع أو اسم مساحة الاسم 'Protobuf' غير موجود في مساحة الاسم 'Google'

The type or namespace name `Protobuf' does not exist in the namespace `Google'. Are you missing an assembly reference?

تأكد من أن مشروعك يستخدم .NET 4.x. تحقق من إعدادات المشغّل > مشاكل أخرى الإعدادات > الإعداد > إصدار بيئة تشغيل النصوص البرمجية

تحميلSceneTracker.cs: النوع أو اسم مساحة الاسم 'FidelityParams' تعذر العثور على

LoadingSceneTracker.cs: The type or namespace name 'FidelityParams' could not be found (are you missing a using directive or an assembly reference?)
LoadingSceneTracker.cs: The type or namespace name 'Annotation' could not be found (are you missing a using directive or an assembly reference?)

إزالة ANDROID_PERFORMANCE_TUNER_UTILITIES من إعدادات المشغّل > رموز تعريف النصوص البرمجية