뒤끝 구글로그인 3.0 에러

고객님의 문의에 답변하는 직원은 고객 여러분의 가족 중 한 사람일 수 있습니다.
고객의 언어폭력(비하, 조롱, 욕설, 협박, 성희롱 등)으로부터 직원을 보호하기 위해
관련 법에 따라 수사기관에 필요한 조치를 요구할 수 있으며, 형법에 의해 처벌 대상이 될 수 있습니다.

커뮤니티 이용 정책에 위배되는 게시물을 작성할 경우, 별도 안내 없이 게시물 삭제 또는 커뮤니티 이용이 제한될 수 있습니다.

문의 응대 : 평일 오전 10시 ~ 오후 6시
문의를 남기실 경우 다음 항목을 작성해 주세요.
정보가 부족하거나 응대시간 외 문의하는 경우 확인 및 답변이 지연될 수 있습니다.

  • 뒤끝 SDK 버전 : 5.17.0
  • 프로젝트명 : 스켈레톤 키우기
  • 스테이터스 코드 :
  • 에러 코드 :
  • 에러 메시지 :
    유니티 6 버전으로 구글로그인 3.0 설치후 테스트를위해 빌드후

에러발생

Error Unity SDK Exception : GoogleLogin(clientId, callback). java.lang.NoSuchMethodError: No static method create(Landroid/content/Context;)Landroidx/credentials/CredentialManager; in class Landroidx/credentials/CredentialManager; or its super classes (declaration of ‘androidx.credentials.CredentialManager’ appears in /data/app/~~2eifJ0iv0MD5ghOuHVdpEA==/com.LiaChen.IDLEGAME-UUfcF1GsFtODQzyLpclhJQ==/base.apk)

다시 버튼을 눌렀을때
Error Unity signIn. GoogleSignInHandler already is running!!

다른 글보고 이미지처럼 난독화쪽 거의모든코드 추가및 유니티6 부터 적용된옵션체크확인
image

안녕하세요, 개발자님.
정확한 확인을 위해 아래와 같이 추가 정보를 확인해 주시면 감사하겠습니다.

  • 사용하시는 유니티 버전
  • 빌드시에 설정한 Android API Level(Minimum, Target)
  • 테스트에 사용하신 단말이나 에뮬레이터 이름 및 해당 테스터 기기의 안드로이드 버전
좋아요 1

유니티 6.1 버전
최소안드로이드버전은 23 맥스치는 35버전사용했습니다
LD애뮬레이터 사용했습니다

좋아요 2

안녕하세요. 혹시 이 부분 해결하셨나요? 개발자님과 같은 에러로 글이 올라와있는게 여러개가 보여서요!

좋아요 1

아직입니다만…가이드가 부족하단 느낌이 많이들긴하네요
정책바뀐지 몇일안되서 그런것도 있는거 같습니다.

안녕하세요 일단 불완전한 해결을 보긴했습니다.
일단 뒤끝 구글로그인 sdk 문서 업데이트가 되었고 그부분 확인

dependencies 설정 (동일하더라구요) 이건 패스

외국포럼좀 찾아보다가 비슷한 문제 확인하였고

Ok found a workaround temp fix. @unity needs to resolve this matter but here is the workaround that just worked for me. I have two projects of my game, one in unity 6 and one In unity 2023. Install the same plugin in both, so for me that was 10.14. Go to the 2023 (or older) stable version where force resolver works no problem. So what you do is after force resolve, look in Assets\Plugins\Android. You’ll see dozens of plug-ins. Reveal that plugin folder in finder. Now go back to Unity 6. Make sure your android setup (window> google play games) is done, then go to external dependency and do a regular resolve, not a force. Because of the bug, there should be no plug-ins in there, and if there is, delete whatever is in there except GooglePlayGamesManifest. Reveal that folder in finder. Now copy everything in the 2023 plug in folder and paste it into the unity 6 plug in folder. If it asks to replace certain files, click replace. Come back to unity 6, all the plug ins should now be in there.

DO NOT FORCE RESOLVE - DO NOT REGULAR RESOLVE - DO NOT DO THE GOOGLE PLAY GAMES ANDROID SET UP - DO NOT BUILD AND RUN - DO NOT DO ANYTHING NOW EXCEPT THIS

  1. Make sure your publisher settings and player settings, etc are how you want it to be for the build. SDK MINIMUM SHOULD BE API 26 and set target to 35. You must set min to 26 or it will crash.
  2. DO NOT BUILD & RUN - if you do, it will remove the plug ins and you’ll have to copy and paste again and it will throw the Gradle error
  3. INSTEAD do build profiles and just make a regular build FIRST
  4. It should now successfully build it out without the Gradle issue (no clue why)
  5. NOW, after it successfully built it, press build and run and it’ll successfully install the apk onto your device. Again, if you do build and run first, it won’t do a successful build.

ALSO - ANOTHER SUGGESTION
For the time being I would uncheck “enable auto-resolution” and “enable resolution on build” in the external dependency android resolver settings. If you don’t disable these two, every time you close and open your project, you’ll have to copy and paste the plug ins again. You also don’t need to do the android setup anymore either, it’s already set and if you do that, you’ll have to once again copy and paste the plug-ins.

This is my temporary fix for now. Unity, please figure out what’s going on. Hope this helps someone else

구글쪽 문제인걸로 확인된거 같아요
api레벨 최소 26 최대 35로 고정하고 빌드 시키니 구글로그인이되긴하네요.


좋아요 1

최소API를 올리셨군요. 저도 한번 해봐야겠네요. 감사합니다 개발자님! 뒤끝에서도 대응중이라고 생각합니다. 분명 곧 공지를 올리지않을까 싶네요.

확인 상 java.lang.NoSuchMethodError 에러의 경우, 로그인 관련 라이브러리 호환성 문제일 수일 수 있는 것으로 확인됩니다.
이미 안내드릴 내용과 관련하여 해결을 하신것으로 확인되나 많은분이 함께 확인하실 수 있도록 공유드립니다.

동일 문제가 발생하시는 경우 아래 사항을 체크 해보시고 정상 동작 여부를 확인하여 주시면 감사하겠습니다.

  • API 레벨 변경
    • 안드로이드 기기에 설치된 구글 버전에 따라서 빌드하는 API Level에 영향을 받을 수 있습니다.
      Minimum API나 Target API를 좀 더 높은 버전으로 빌드하고 확인부탁드립니다.
      특히 Minimum API의 경우, API 24 혹은 API 26에서 정상 동작하는 경우들이 있습니다.
  • Google Play Services를 최신 버전으로 업데이트
    • Google Play Services 앱 버전이 낮은 경우에도 호환성 문제가 발생할 수 있습니다.
    • 설정 > 애플리케이션 > Google Play Services 에 들어가서 앱 출처 정보를 통해 Play 스토어로 이동하여 앱 업데이트를 진행하시면 됩니다.