I added two achievements for test purposes.I have a Long variable whose name is longScore1.I can save the score, but the user does not gain XP.My goal is to give users XP. Here my codes;
GamesClient gamesClient = Games.getGamesClient(MainActivity.this, GoogleSignIn.getLastSignedInAccount(this));
gamesClient.setViewForPopups(findViewById(R.id.container_pop_up));
Games.getAchievementsClient(this, GoogleSignIn.getLastSignedInAccount(this))
.unlock(getString(R.string.achievement_paaaa));
longScore1+=80;