Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put credentials.json in Android Studio

Tags:

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.

like image 803
Rahul Sharma Avatar asked Jan 23 '18 08:01

Rahul Sharma


People also ask

Where to put credentials json file in Android Studio?

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 .

Where do I put Google JSON files?

Adding the JSON File json file is generally placed in the app/ directory (at the root of the Android Studio app module).


1 Answers

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

like image 69
Abdelrhman Walid Avatar answered Oct 08 '22 04:10

Abdelrhman Walid