Store/Google Play

PlayGamesClientConfiguration 형식 또는 네임스페이스 이름을 찾을 수 없습니다. 문제 해결하기

OneSeat 2023. 1. 6.
반응형

🧱 사양

Windows 10, Unity 2021.3.15f1

 

💼 서론

Google Play Console 과정을 진행하다 보면 Google Play Games plugin for Unity를 설치하는 과정을 진행하게 됩니다.

관련해서 이슈를 찾아보면 이유는 딱히 적혀있지 않고 대부분 버전을 낮춰라 그러면 해결되더라 식의 해결 방법이었기에 좀 더 검색하면서 이유를 찾아보게 되었습니다.

 

 

 

 

 

 

 

💡 본인의 PlugIn 버전을 확인하기

일단, 결론은 해당 코드가 정상적으로 동작하는 버전을 찾는다면, 버전을 v10.x로 낮춰서 사용해라입니다.

 

아래는 관련한 내용입니다.

 

 

Releases · playgameservices/play-games-plugin-for-unity

Google Play Games plugin for Unity. Contribute to playgameservices/play-games-plugin-for-unity development by creating an account on GitHub.

github.com

위의 주소에서 Google Play Games Plugin for Unity를 다운로드하여서 Unitypackage를 프로젝트에 적용하고 문서에 적힌 코드대로 적용해보면 아래와 같은 문장이 나옵니다.

PlayGamesClientConfiguration 형식 또는 네임스페이스 이름을 찾을 수 없습니다.

위와 같은 내용이 발생한다면 본인이 Unity에 적용한 버전이 v10.x버전인지, v11.x버전인지 확인이 필요합니다.

 

일단 본인의 버전이 v11.x버전 이상이라면 해당 문제가 발생할 수 있습니다.

 

현재 구글에서는 v11.x버전 이상을 V2버전이라고 명시해두고 있습니다.

아래 링크로 들어가서 Version 0.11.01의 New Features의 내용을 보시면 됩니다.

 

Releases · playgameservices/play-games-plugin-for-unity

Google Play Games plugin for Unity. Contribute to playgameservices/play-games-plugin-for-unity development by creating an account on GitHub.

github.com

 

동작을 위한 함수가 조금 다르며, 가이드 문서 또한 다릅니다.

 

아래는 v10.x버전의 가이드 링크입니다.

 

GitHub - playgameservices/play-games-plugin-for-unity: Google Play Games plugin for Unity

Google Play Games plugin for Unity. Contribute to playgameservices/play-games-plugin-for-unity development by creating an account on GitHub.

github.com

 

아래는 v11.x버전 이상의 가이드 링크입니다.

 

GitHub - playgameservices/play-games-plugin-for-unity: Google Play Games plugin for Unity

Google Play Games plugin for Unity. Contribute to playgameservices/play-games-plugin-for-unity development by creating an account on GitHub.

github.com

 

주소를 잘 보시면 v10.x 가이드에서는 아래와 같은 내용이 포함되어 있습니다.

PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()

그러나 v11.x 이상의 가이드에서는 해당 내용의 가이드가 포함되어 있지 않습니다.

 

즉, 해당 내용을 쓰고 싶다면 버전을 v10.x 이하로 낮춰서 사용하거나 최신 버전에 맞게 코드를 수정해야 합니다.

 

 

 
반응형

댓글