GoogleAuthIOException移动后端入门 - Google Cloud Endpoints

JR *_*lia 2 google-app-engine android google-cloud-endpoints

部署 Mobile Backend Starter的后端并运行android示例后,我遇到了GoogleAuthIOExceptio

com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
Run Code Online (Sandbox Code Playgroud)

我已经尝试过Secured by Client IDs身份验证选项并Web Client ID在后端和Android客户端中使用,但仍然有例外.

小智 5

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

  • 在Consts.java文件中将其更改为true后,它完美运行!谢谢!作为参考,我还有一个例外,即没有正确设置Google Play服务的版本.但是,执行异常建议(将清单中的版本更改为@ integer/google_play_services_version)会修复它.我想知道他们为什么不以那种方式运送这个例子? (2认同)