To create Google credentials for android, Follow the following steps
1. Go to the Google Console
2.Sign in to your google account
3.Click On the CREATE PROJECT
4.Type a Project Name
In my case project name is an example.
and the hit the CREATE button
Now the project is successfully created.
5. click the Select Project button and select the project name
After selecting a project the screen looks like below
6. click CONFIGURE CONSENT SCREEN
fill the above details and click on the save&continue button
7.go to Credentials -> Create Credentials -> OAuth client ID
enter the name, Package Name, and SHA-1 certificate fingerprint
to generate an SHA-1 Certificate fingerprint, you have to generate a Keystore file of your project and then type the following command in the prompt
keytool -keystore path-to-debug-or-production-keystore -list -v
8. click the CREATE button.
after clicking the create button, you get the Credentials for your app you can also download it to your local computer