发布时间: 2023-06-24 01:59:00
refer to:
https://firebase.google.com/
1. 打开
2. 点击开始(可以事先用gmail登录)
3. 输入名称,会带有几个随机字母
4. 可以看到创建成功
5. 进入到了后台 可以看到支持多种平台(ios, android, web. ...)
6. 点击android图标,输入名称。
按照提示来:
纯文字版:buildscript { repositories { // Make sure that you have the following two repositories google() // Google's Maven repository mavenCentral() // Maven Central repository } dependencies { ... // Add the dependency for the Google services Gradle plugin classpath 'com.google.gms:google-services:4.3.15' } } allprojects { ... repositories { // Make sure that you have the following two repositories google() // Google's Maven repository mavenCentral() // Maven Central repository } }
plugins { id 'com.android.application' // Add the Google services Gradle plugin id 'com.google.gms.google-services' ... } dependencies { // Import the Firebase BoM implementation platform('com.google.firebase:firebase-bom:32.1.1') // TODO: Add the dependencies for Firebase products you want to use // When using the BoM, don't specify versions in Firebase dependencies // https://firebase.google.com/docs/android/setup#available-libraries }
就可以了。
Back