stevdza-san / OneTapCompose

This library allow you to easily integrate One-Tap Sign in with Google(Credential Manager) in your project with Jetpack Compose. It keeps away all the boilerplate code.
Apache License 2.0
168 stars 14 forks source link

GetCredentialResponse error returned from framework #31

Closed derekfan0317 closed 1 week ago

derekfan0317 commented 1 week ago

This error often appears when I try to click to log in, is there any solution, or please tell me what I should check to see what went wrong: 2024-05-05 03:29:18.685 10661-10691 CredManProvService com.example.assignment I GetCredentialResponse error returned from framework 2024-05-05 03:29:18.686 10661-10661 OneTapCompose com.example.assignment E No credentials available 2024-05-05 03:29:18.686 10661-10661 LOG com.example.assignment D No credentials available

stevdza-san commented 1 week ago

What device are you using exactly? Have you signed in with your google account on your device? That error often happens with some china manufacturer's, as well as when a user doesn't add a google account on a mobile device/emulator.

derekfan0317 commented 1 week ago

Thank you, it has been solved. I chose to use Android Client ID instead of Web Client ID, and the problem was solved.

What device are you using exactly? Have you signed in with your google account on your device? That error often happens with some china manufacturer's, as well as when a user doesn't add a google account on a mobile device/emulator.