【发布时间】:2016-10-26 08:07:07
【问题描述】:
【问题讨论】:
标签: android firebase google-play-services
【问题讨论】:
标签: android firebase google-play-services
我在The Google Services Gradle Plugin找到了答案
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="default_web_client_id" translatable="false">1035469437078-e8mr503bun5eaevqctn4u807q4hpi44s.apps.googleusercontent.com</string>
<string name="gcm_defaultSenderId" translatable="false">1035469437078</string>
<string name="firebase_database_url" translatable="false">https://myapp.firebaseio.com</string>
<string name="google_app_id" translatable="false">1:1035469437078:android:73a4fb8297b2cd4f</string>
<string name="google_api_key" translatable="false">AIzaSyFE3G2eN0XZPl-IeEvZhzKOAgC9vy9imVE</string>
<string name="google_storage_bucket" translatable="false">myapp.appspot.com</string>
</resources>
gcm_defaultSenderId:
project_info/project_number
google_app_id:
{YOUR_CLIENT}/client_info/mobilesdk_app_id
google_api_key:
{YOUR_CLIENT}/services/api_key/current_key
google_storage_bucket:
project_info/storage_bucket
firebase_database_url:
project_info/firebase_url
default_web_client_id:
{YOUR_CLIENT}/oauth_client/[first client_type 3]
【讨论】:
确保您已经在 app 文件夹中插入了 google-services-json 并且您有稳定的互联网连接,firebase 将在 gradle 同步过程中执行下载包。
【讨论】: