应用发布后无法访问 Google 玩游戏 API

can't access Google Play Games API when released the app

我开发了一个应用程序,其中使用了 Google 玩游戏 API。 当我测试时一切似乎都很好,但自从我发布了我的应用程序后它就停止工作了。

我知道我应该 link 我的应用到 API。我遵循了 StackExchange 上的许多答案,但它仍然不起作用。

我的情况如下:我将发布版本上传到 Google Play Developer Console,我将我的应用程序添加到我的 Google Play Developer Console 中的 Google Play Games 部分。结果是 Google Play API 控制台中自动创建了客户端 ID。我还确保游戏库已启用。

所以理论上它必须起作用,但它不起作用:)

请帮帮我..

日志似乎没有显示任何相关信息。但是它们在这里:

02-18 13:15:31.562 1165-1437/? I/PlayCommon: [93] com.google.android.play.a.g.a(1049): Connecting to server: https:// play.googleapis.com/play/log?format=raw&proto_v2=true
02-18 13:26:57.199 550-579/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
02-18 13:28:42.017 550-579/? E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
02-18 13:28:49.979 1165-1165/? E/Finsky: [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
02-18 13:28:52.304 1165-1437/? I/PlayCommon: [93] com.google.android.play.a.g.a(1049): Connecting to server: https:// play.googleapis.com/play/log?format=raw&proto_v2=true
02-18 13:28:52.777 1165-1165/? I/PlayCommon: [1] com.google.android.play.dfe.api.b.a(20553): Not delivering second response for request=[[ ] https : //android.clients.google.com/fdfe/api/userProfile 0xe8d195d1 NORMAL 63]
02-18 13:28:52.809 1165-1165/? I/Finsky: [1] com.google.android.finsky.api.a.i.a(50039): Not delivering second response for request=[[ ] https:// android.clients.google.com/fdfe/details?doc=com.vladislavzhabinsky.fiveinarow 0xe8d195d1 NORMAL 65]
02-18 13:29:12.255 1165-1165/? E/Finsky: [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
02-18 13:29:18.484 8986-8986/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
02-18 13:29:19.347 8986-9062/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
02-18 13:29:19.440 8986-9011/? W/Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-18 13:29:19.440 8986-9011/? W/Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
02-18 13:29:20.285 9093-9113/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc

基于文档 - API_UNAVAILABLE

One of the API components you attempted to connect to is not available. The API will not work on this device or for your app or for this particular account, and updating Google Play services will not likely solve the problem.

您可能还想检查是否已正确设置所有设置,检查 certificate and keystore if they are for your release build also stated in this forum 以及 API 是否已启用。

希望对您有所帮助。