בדף הזה מוסבר איך לאבחן ולתקן שגיאות נפוצות. הוא מחולק לחלקים לפי קודי שגיאה והודעות ביומן.
קוד תגובה 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
האזהרה "No parameters: no fidelity parameters" (אין פרמטרים: אין פרמטרים של אמינות) והשגיאה "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 לא יוצר קוד לשיטות גנריות. בקטע הידור מראש (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. בודקים את Player Settings > Other Settings > Configuration > Scripting Runtime Version.
LoadingSceneTracker.cs: The type or namespace name 'FidelityParams' could not be found
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 מהקטע Player Settings > Scripting Define Symbols.