申请与添加android项目
这个证书建议使用debug的
Sha1这个是啥呢?
是keysotre的sha1呀,好像在eclipse里直接能查这个debug的sha1. Android studio我没找到。
一般来说windows上debug.keystore在:
C:\Users\Administrator\.android\debug.keystore
进入cmd:
keytool -list -alias androiddebugkey-keystore C:\Users\Administrator\.android\debug.keystore
然后输入密码:直接回车
我的机器上是:E7:5A:3C:53:FB:0C:DE:88:7E:15:A6:E9:D3:20:0A:D5:1D:BA:4B:15
填在上页即可!
复制配置文件
这里直接下载这个google-services.json
配置这个google-services.json
具体使用
1. First, add rules to your root-level build.gradle file, to include the google-services plugin:
buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
}
2. Then, in your module Gradle file (usually the app/build.gradle
), add the apply plugin
line at the bottom of the file to enable the Gradle plugin: