android - 将 firebase 配置为使用 java 包而不是应用程序 ID
问题描述
我有两个使用相同 id 的应用程序,一个是 android 手机,在 android 电视上。他们需要有相同的 id,因为 google play store,所以我不能在 firebase 上给他们不同的应用程序 ID。
有什么方法可以将firebase配置为使用java包而不是build.gradle中的applicationId?
还是有另一种方法来解决这个问题,而不改变 build.gradle 中的 applicationID?
解决方案
试试这种格式:
android {
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
...
}
推荐阅读
- php - 如何使用 Laravel Eloquent 仅检索数据透视行?
- git - GitLab Runner:“无法解析主机”,但可以使用 exec 进入容器
- php - 在我的本地机器上调试远程服务器 [PHP 应用程序] [PhpStorm+Xdebug]
- reactjs - 如何在 React useEffect 钩子触发效果后重新居中 Openlayer 6 地图
- c# - 在 rdlc 报告的文本框中显示不同页面中的每条记录
- node.js - Mongo DB 客户端无法关闭(Express、Node.js、MongoClient)
- c# - MVC WebAPI 返回多个图像
- javascript - 如何遍历div中的所有textarea元素
- groovy - 在 NiFi 中生成 UUID5
- java - 旧版本的 Spring Boot 无法在 Java 11 上启动