פתרון של שגיאות נפוצות

בדף הזה נסביר איך לאבחן ולתקן שגיאות נפוצות. זה כן מחולקות לקטעים על סמך קודי שגיאה והודעות יומן.

קוד תגובה 400

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

השגיאה הזו יכולה להופיע אם מפתח ה-API לא תקין. צפייה מפעילים את ה-API ואת הקטע מגדירים את הפלאגין.

קוד תגובה 403

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

השגיאה הזו יכולה להופיע אם מפתח ה-API לא מופעל או אם הופיעה הודעת שגיאה הגבלת מפתח ה-API (לדוגמה, השתמשתם באישור או גיבוב שגוי ). כדאי לעיין במאמר הפעלת ה-API.

'אין פרמטרים: אין פרמטרים של דיוק' אזהרה ו-"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

אלה אזהרות לא מזיקות שמופצות על ידי ספריית Tuning Fork כאשר לבדוק אם הוגדר באפליקציה סימונים שניתנות לניפוי באגים. למרות שהן מילוליות בלתי מזיקים ולא מעידים על בעיה בשילוב של הספרייה. אפשר להתעלם מהאזהרות האלה.

קובצי 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 מהדר (compiler) לא יוצר קוד ל-methods כלליות. לקבלת מידע על האופן שבו לאכוף את הקוד הנדרש, "עיינו בקטע Ahead-of-time compile (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. מסמנים את הגדרות הנגן > המלצות אחרות הגדרות > הגדרה > גרסת זמן ריצה של כתיבת סקריפטים

ListenSceneTracker.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 מתוך הגדרות נגן > הוספת סמלים להגדרת סקריפטים.