Tag: google play games

Google Play游戏

今天是个好日子。 我正在尝试在我正在开发的游戏中实现成就。 我已经在google play console上设置了所有内容,获得了app-id,将清单放入以下内容中 并编写了以下方法 GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance(); int temp = googleApiAvailability.isGooglePlayServicesAvailable(this); if ( temp != 0) return; GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN) .requestEmail() .build(); GoogleSignIn.getClient(this, gso); GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this); PlayersClient player = Games.getPlayersClient(this, account); 当我运行它时,我得到了我的帐户,但是当它运行Games.getPlayersClient(this, account); 我收到以下错误: java.lang.IllegalStateException:游戏API需要https://www.googleapis.com/auth/games_litefunction。 任何人都知道什么可能是错的? 提前致谢。