排查常见错误
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本主题介绍了如何诊断和修复常见错误。它根据错误代码或日志消息划分为不同的部分。
响应代码 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 库在检查应用是否设置了可调试标志时发出。这些警告虽然详细具体,但是无害,并不代表库集成中出现问题。您可以忽略这些警告。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-01。
[null,null,["最后更新时间 (UTC):2025-08-01。"],[],[],null,["# Troubleshoot common errors\n\nThis topic contains information on how to diagnose and fix common errors. It is\ndivided into sections based on error codes or log messages.\n\nResponse code 400\n-----------------\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/custom-engine/enable-api).\n\nResponse code 403\n-----------------\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\n[Enable the API](/games/sdk/performance-tuner/custom-engine/enable-api).\n\n\"No parameters: no fidelity parameters\" warning and \"java.lang.NoSuchFieldError\" shown in logs\n----------------------------------------------------------------------------------------------\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**."]]