更新时间:2023-11-29 22:45:22
firebase-admin不适用于Android应用。它用于从您的控件服务器访问Firebase服务。
firebase-admin is not intended for use in Android apps. It's for accessing Firebase services from servers your control.
From the documentation regarding prequisites:
在开始之前,请确保您拥有以下内容:
Before you begin, make sure you have the following:
- If using the Admin Node.js SDK, a server running Node.js 4.0+
- If using the Admin Java SDK, a server running Java 7+
- If using the Admin Python SDK, a server running Python 2.7+ or 3.x
- A server app
google-services插件提供了这个警告,因为它认为每个使用groupcom.google.firebase的maven目标实际上都是一个Firebase Android客户端SDK,它们都必须与您的应用相同。
The google-services plugin is giving you that warning because it thinks every maven target with group "com.google.firebase" is actually a Firebase Android client SDK, which all must be the same version in your app.