I have made a project involving Google Login.
The file downloaded was credentials.json.
Where do I put this?
Since when this has been changed from google-services.json
Note: I am not using Firebase.
In order to try out this sample, visit the Cloud Console, and navigate to: API Manager > Credentials > Create credentials > Service account key > New service account . Create a new service account, and download the JSON credentials file. Put the file in the app resources as app/src/main/res/raw/credential. json .
Adding the JSON File json file is generally placed in the app/ directory (at the root of the Android Studio app module).
You don't need the credentials.json
file to add basic google sign in to your app
follow this url and click the Configure a project
button to add the package name and key sha-1 fingerprint and you should be good to go
https://developers.google.com/identity/sign-in/android/start-integrating
check the this google sample project for a full implementation
https://github.com/googlesamples/google-services/tree/master/android/signin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With