为什么登录 Google Play 服务不起作用?

Why does signing in the Google Play Services not work?

我的游戏无法登录 Google Play 游戏服务,我不明白为什么。我尝试了很多不同的解决方案,none 对我有用,而且,我使用的是 Google 指南,但我仍然无法登录(尽管我已经设置了我的测试帐户并更正了 APP_ID).

清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.hypeofpipe.westernshooter"
    android:versionCode="8"
    android:versionName="0.4preAlpha">
    <uses-sdk android:minSdkVersion="18" android:targetSdkVersion="25" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/GdxTheme" >
    <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id"/>
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    <activity
        android:name="com.hypeofpipe.westernshooter.AndroidLauncher"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>

</manifest>

是的,Włodek Wolieniuk,我在你的 logcat 中看到:

GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE

这导致我 this link.

Fact is that when you sign a APK and then ask Google for a OAuth2 token, you have to register your signed app through the dev console.