【问题标题】:Getting error when changing "applicationId" in gradle (No matching client found for package name "my_new_app_id")在 gradle 中更改“applicationId”时出错(找不到与包名称“my_new_app_id”匹配的客户端)
【发布时间】:2018-07-12 14:28:05
【问题描述】:

我正在尝试更改我的应用程序 gradle 中的 applicationId 并在 Android Studio 3.0.1 中遇到错误。

错误:任务 ':app:processDebugGoogleServices' 执行失败。 找不到与包名称“my_new_app_id”匹配的客户端

【问题讨论】:

  • 你的google-services.json文件配置正确了吗?
  • 在 Firebase 控制台中配置您的项目,确保输入正确的包名,然后下载 json 文件并将其保存在您的应用模块中。
  • 我没有更改我的应用程序的包名,我只更改了 applicationid,这就是为什么 firebase 控制台和 json 文件中的包名没有更改,并且在更改应用程序 id 之前配置了 firebase .... 做我需要更改 firebase 控制台中的 applicationid ???

标签: android gradle


【解决方案1】:

Firebase 在内部使用application id 来配置我们的应用。因此,如果您同时更改了应用程序ID,请确保从控制台中删除项目,再次添加,配置密钥,然后在应用程序模块目录的根目录中添加google-services.json文件以获取您的项目工作。

【讨论】:

    猜你喜欢
    • 2019-06-19
    • 1970-01-01
    • 2021-05-11
    • 1970-01-01
    • 2020-10-19
    • 2019-01-13
    • 1970-01-01
    • 2019-12-05
    • 2021-10-08
    相关资源
    最近更新 更多