Where to put credentials.json in Android Studio

混江龙づ霸主 提交于 2019-12-21 07:24:41

问题


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.


回答1:


The most common place is in your project_folder/app folder.




回答2:


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



来源:https://stackoverflow.com/questions/48397347/where-to-put-credentials-json-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!