【问题标题】:GoogleAuthIOException Mobile Backend Starter - Google Cloud EndpointsGoogleAuthIOException 移动后端启动器 - Google Cloud Endpoints
【发布时间】:2014-01-10 09:05:04
【问题描述】:

deploying the backend for Mobile Backend Starter 和running android sample 之后,我遇到了GoogleAuthIOExceptio

com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException

我已经尝试过Secured by Client IDs 身份验证选项,并在后端和安卓客户端都使用了Web Client ID,但仍然有异常。

【问题讨论】:

  • 我刚刚设置了示例留言簿应用程序并遇到了完全相同的问题。云控制台说后端已部署,身份验证设置为 Open(仅供开发使用),并且在 Consts.java 文件中我更改为我自己的项目 ID。
  • 在出现异常之前我收到警告:“未设置应用程序名称。调用 Builder#setApplicationName。”你 JR Galia 也明白吗?
  • 是的,我也收到了警告。

标签: android google-app-engine google-cloud-endpoints


【解决方案1】:

设置 public static final boolean IS_AUTH_ENABLED = false; 在 Consts.java 中

【讨论】:

  • 在 Consts.java 文件中将其更改为 true 后,它运行良好!谢谢!作为参考,我还有一个关于没有正确设置 Google Play 服务版本的异常。但是,按照异常建议的操作(在清单中将版本更改为 @integer/google_play_services_version)可以修复它。我想知道他们为什么不以这种方式发布示例?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-05-26
  • 2017-02-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-02
相关资源
最近更新 更多