git clone https://github.com/googlesamples/google-services.git
先下载源码,在源码上能马上验证是否接入成功。
下载慢的可以用这个
选择“ 文件”>“打开”,浏览到克隆 google-services存储库的位置,然后打开 google-services/android/signin。
命令行
官方: keytool -keystore path-to-debug-or-production-keystore -list -v
path-to-debug-or-production-keystore: 密钥存储库路径
例子:keytool -keystore C:\Users\Administrator.android\debug.keystore -list -v
Android Studio
这时候只要去项目中替换掉string.xml的server_client_id就可以了
手机是需要安装谷歌全家桶才能运行的。