Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/205.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android GoogleAppClient未添加作用域_Android_Authentication_Google Play Games_Google Api Client - Fatal编程技术网

Android GoogleAppClient未添加作用域

Android GoogleAppClient未添加作用域,android,authentication,google-play-games,google-api-client,Android,Authentication,Google Play Games,Google Api Client,我的问题是GoogleAppClient没有正确添加游戏范围。 在PlayServices 8.1发布之前,它运行良好 下面是初始化ApicClient的代码 if (GameUtils.isGooglePlayGamesEnabled()) { mApiClient = new GoogleApiClient.Builder(this) .addApi(Games.API) // I also tried: .addScope(Games

我的问题是GoogleAppClient没有正确添加游戏范围。 在PlayServices 8.1发布之前,它运行良好

下面是初始化ApicClient的代码

if (GameUtils.isGooglePlayGamesEnabled()) {
    mApiClient = new GoogleApiClient.Builder(this)
            .addApi(Games.API)
            // I also tried: .addScope(Games.SCOPE_GAMES)
            .addScope(new Scope(Scopes.GAMES))
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();
    mApiClient.connect();
}
这是一个屏幕截图,显示尽管范围是游戏范围,但不要求任何权限

有什么想法吗


这是否发生在Android 6.0上?没有。棒棒糖5.1和KitKat 4.4这会发生在Android 6.0上吗?不会。棒棒糖5.1和Kit Kat 4.4