如果您的 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
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
ExecutionEngineException: Attempting to call method 'Google.Protobuf.Reflection.ReflectionUtil+ReflectionHelper' ... for which no ahead of time (AOT) code was generated.
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?)
从 Player Settings > Scripting Define Symbols 中移除 ANDROID_PERFORMANCE_TUNER_UTILITIES。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-26。"],[],[],null,["This page contains information on how to diagnose and fix common errors. It is\ndivided into sections based on error codes and log messages.\n\nResponse code 400 \n\n Connecting to: https://performanceparameters.googleapis.com/v1/applications/...\n TuningFork:Web: Response code: 400\n TuningFork:Web: Response message: Bad\n\nYou can get this error if your API key is invalid. See\n[Enable the API](/games/sdk/performance-tuner/unity/enable-api) and section\n[Configure the plugin](/games/sdk/performance-tuner/unity/integrate-plugin#configure).\n\nResponse code 403 \n\n TuningFork:Web: Connecting to: https://performanceparameters.googleapis.com/v1/applications/...:generateTuningParameters\n TuningFork:Web: Response code: 403\n TuningFork:Web: Response message: Forbidden\n\nYou can get this error if your API key is not enabled or you made an error when\nrestricting the API key (for example, you used the wrong certificate or hash\nvalue). See [Enable the API](/games/sdk/performance-tuner/unity/enable-api).\n\n\"No parameters: no fidelity parameters\" warning and \"java.lang.NoSuchFieldError\" shown in logs \n\n TuningFork:FPDownload: No parameters: no fidelity parameters\n TuningFork: java.lang.NoSuchFieldError: no \"[Landroid/content/pm/ApplicationInfo;\" field \"applicationInfo\" in class \"Landroid/content/pm/PackageInfo;\" or its superclasses\n TuningFork: Could not get fidelity params from server : err = 4\n\nThese are harmless warnings emitted by the Tuning Fork library when\nchecking to see if the app has the debuggable flag set. While verbose, they are\nharmless and are not indicative of a problem in the integration of the library.\n**You can ignore these warnings**.\n\nMultiple Google.Protobuf.dll files \n\n PrecompiledAssemblyException: Multiple precompiled assemblies with the same name\n Google.Protobuf.dll included for the current platform.\n Only one assembly with the same name is allowed per platform. Assembly paths: ...\n\n Error: The imported type `Google.Protobuf.IMessage\u003cT\u003e' is defined multiple times\n\nYou can get one of these errors if your project contains multiple\n`Google.Protobuf.dll` files. Remove one of the `.dll` files to resolve this\nconflict.\n\nAttempting to call method ... for which no ahead of time (AOT) code was generated \n\n ExecutionEngineException: Attempting to call method 'Google.Protobuf.Reflection.ReflectionUtil+ReflectionHelper' ... for which no ahead of time (AOT) code was generated.\n\nYou can see this error on some versions of Unity. This error occurs if the AOT\ncompiler is not generating code for generic methods. For information on how to\nforce generate required code, see section\n[Ahead-of-time compile (AOT)](/games/sdk/performance-tuner/unity/initialize-library#aot-compile).\n\nThe type or namespace name 'Protobuf' does not exist in the namespace 'Google' \n\n The type or namespace name `Protobuf' does not exist in the namespace `Google'. Are you missing an assembly reference?\n\nMake sure your project is using **.NET 4.x** . Check **Player Settings \\\u003e Other\nSettings \\\u003e Configuration \\\u003e Scripting Runtime Version**.\n\nLoadingSceneTracker.cs: The type or namespace name 'FidelityParams' could not be found \n\n LoadingSceneTracker.cs: The type or namespace name 'FidelityParams' could not be found (are you missing a using directive or an assembly reference?)\n LoadingSceneTracker.cs: The type or namespace name 'Annotation' could not be found (are you missing a using directive or an assembly reference?)\n\nRemove `ANDROID_PERFORMANCE_TUNER_UTILITIES` from\n**Player Settings \\\u003e Scripting Define Symbols**."]]