【问题标题】:Google developer console - Project ID or Project numberGoogle 开发者控制台 - 项目 ID 或项目编号
【发布时间】:2016-03-08 18:01:04
【问题描述】:

我一直在使用本教程 here 在我的应用中实现 Google 登录按钮。

我的项目名称和 ID 来自 Google 开发者控制台 proof of project id and number

我已将号码放在strings.xml 文件中并添加了

<meta-data android:name="com.google.android.gms.games.APP_ID"
           android:value="@string/app_id" />

AndroidManifest.xml 文件

我的应用运行良好,但是当我尝试使用添加到我的活动中的 Google 登录按钮登录时,我的 LogCat 中出现以下错误。

03-08 17:45:59.626 2073-12290/? E/GameAgent: Unable to retrieve application 522187312304 from network
03-08 17:45:59.626 2073-12290/? E/GameAgent: Application 522187312304 is not associated with package com.example.healyj36.quizapp. Check the application ID in your manifest.

我不明白我做错了什么,我是否使用了错误的 ID/号码?

另外,我对Google Developer ConsoleGoogle Play Developer Console 感到困惑。它们之间有什么区别?我用错了吗? (我使用的是谷歌开发者控制台)

【问题讨论】:

    标签: android xml google-app-engine google-play-services google-developer-tools


    【解决方案1】:

    正如我所读到的,Google Developers Console 是您创建客户端 ID 的地方,您需要调用登录 API。您必须先拥有 Google Developers Console 项目,然后才能将 Google Sign-In 集成到您的应用中。

    否则,Google Play Developer Console 是您上传应用、构建产品页面、配置价格和分销以及发布的地方。您可以从任何网络浏览器通过开发者控制台管理在 Google Play 上发布的所有阶段。

    对于错误E/GameAgent: Unable to retrieve application 522187312304 from network,请尝试在 Google API 控制台上删除您的应用客户端 ID,取消关联您的应用,然后使用正确的 SHA1 指纹重新关联。

    查看与您的问题相关的SO ticket

    【讨论】:

      猜你喜欢
      • 2015-10-28
      • 2017-07-16
      • 1970-01-01
      • 2023-03-31
      • 2018-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多