일반적인 오류 해결

이 페이지에는 일반적인 오류를 진단하고 수정하는 방법에 관한 정보가 포함되어 있습니다. 오류 코드 및 로그 메시지에 따라 다음과 같은 섹션으로 구분됩니다.

응답 코드 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(Ahead-of-time) 코드가 생성되지 않은 경우

ExecutionEngineException: Attempting to call method 'Google.Protobuf.Reflection.ReflectionUtil+ReflectionHelper' ... for which no ahead of time (AOT) code was generated.

일부 Unity 버전에서 이 오류가 표시될 수 있습니다. 이 오류는 AOT 컴파일러가 제네릭 메서드의 코드를 생성하지 않는 경우에 발생합니다. 필수 코드 강제 생성 방법에 관한 자세한 내용은 AOT(Ahead-of-time) 컴파일 섹션을 참고하세요.

'Google' 네임스페이스에 유형 또는 네임스페이스 이름 'Protobuf'가 없음

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?)

Player Settings(플레이어 설정) > Scripting Define Symbols(스크립팅 정의 기호)에서 ANDROID_PERFORMANCE_TUNER_UTILITIES를 삭제합니다.