Can';t让用户登录Google Play Games(ApiException:com.Google.android.gms.common.api.ApiException:4:)

Can';t让用户登录Google Play Games(ApiException:com.Google.android.gms.common.api.ApiException:4:),android,Android,我使用以下方法登录玩家: private void sign_in_player_silently(){ if(!is_signed_into_play_games()){ GoogleSignInClient google_sign_in_client = GoogleSignIn.getClient(current_context,GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN); google_sign_in_c

我使用以下方法登录玩家:

private void sign_in_player_silently(){

    if(!is_signed_into_play_games()){
        GoogleSignInClient google_sign_in_client = GoogleSignIn.getClient(current_context,GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN);
        google_sign_in_client.silentSignIn().addOnCompleteListener(new OnCompleteListener<GoogleSignInAccount>() {
            @Override
            public void onComplete(@NonNull Task<GoogleSignInAccount> task) {
                if(task.isSuccessful()){
                    player_account = task.getResult();
                    Games.getGamesClient(current_context,player_account).setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
                }
                else{
                    Log.d("GooglePlayGames","Could not sign player in. Exception thrown:\n" + task.getException());
                }

            }
        });
    }

}
<uses-permission android:name="android.permission.INTERNET" />
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
    implementation 'com.google.android.gms:play-services-identity:15.0.1'
    implementation 'com.google.android.gms:play-services-games:15.0.1'
    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    implementation 'com.google.android.gms:play-services-games:15.0.1'
}