android - 不适用于包名称和 firebase
问题描述
我有一个应用程序上传到 Play 商店。包是:com.pathapp但随后用 gradle 生成了两个 apk,com.path调试和发布(没有应用程序)。现在我想集成firebase,但我不知道应用程序的名称是什么我必须放在firebase中,如果com.path或com.pathapp为了有一个构造良好的google-services.json文件。
如果我将目录的原始包从pathapp更改为path,会有问题吗?
解决方案
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.00"
}
}
applicationId
在 gradle 中是你的包名。
所以你需要在 firebase 控制台中添加它。
在上面的例子中,包名是com.example
. 同样,检查你的 gradle。
推荐阅读
- php - 如何在wordpress中以与“get_the_date()”相同的格式从wp api获取发布日期
- android - Firebase 动态链接与两个 android 应用版本(或风格)
- javascript - 需要帮助使用 java-script 在 html 文件中显示 XML 内容
- java - 谁来帮帮我。使用 API 重新编译后出现此问题
- java - 如何在 Java 中向正在运行的进程发送输入?
- android - 在 Android 中,在 Material Design 组件中使用 Exposed Dropdown Menus 时 AutoCompleteTextView 不居中
- javascript - 单击元素和 stopPropagation() 另一个
- c# - Access 数据库连接会话状态
- html - CSS:选择只有一个父匹配属性选择器的元素
- angular - 从 Angular 材料扩展 MatChip。为什么输入和占位符不再起作用?