Android GoogleAppClient未添加作用域
我的问题是GoogleAppClient没有正确添加游戏范围。 在PlayServices 8.1发布之前,它运行良好 下面是初始化ApicClient的代码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
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