בדף הזה מוסבר איך לאבחן ולתקן שגיאות נפוצות. הוא מחולק לחלקים לפי קודי שגיאה והודעות ביומן.
קוד תגובה 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 (לדוגמה, השתמשתם באישור או בערך hash שגויים). הפעלת ה-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 כשבודקים אם האפליקציה כוללת את הדגל debuggable. הן אמנם מפורטות, אבל לא מזיקות ולא מעידות על בעיה בשילוב של הספרייה. אפשר להתעלם מהאזהרות האלה.
כמה קבצים של 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: לא ניתן למצוא את שם הסוג או מרחב השמות 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
מPlayer Settings > Scripting Define Symbols.