How create a upl for get the player position on google games leaderboard?

hi i am trying to implement this using a UPL

public int AndroidThunkJava_GetPlayerLeaderBoardPosition()
      {
      if(googleClient==null)
      return -2;

      String leaderboardId="CgkI0suKm7APEAIQBQ";

      Games.Leaderboards.loadCurrentPlayerLeaderboardScore(googleClient, leaderboardId, LeaderboardVariant.TIME_SPAN_WEEKLY, LeaderboardVariant.COLLECTION_PUBLIC).setResultCallback(new ResultCallback<Leaderboards.LoadPlayerScoreResult>() {
      @Override
      public void onResult(Leaderboards.LoadPlayerScoreResult loadPlayerScoreResult) {
      if (loadPlayerScoreResult != null && loadPlayerScoreResult.getScore() != null) {
      return  loadPlayerScoreResult.getScore().getRank();


      }
      }
      });

      return -1;

      }

so i want to get the ranking number on leaderboard for the player. But everytime i try to compile i get
package Leaderboards does not exist

Y:\src\com\epicgames\ue4\GameActivity.java:82: error: cannot find symbol
UATHelper: Packaging (Android (All)): UnrealBuildTool:     [javac] import com.google.android.gms.games.leaderboard;

so i dont know what library add and where
i tried this on UPL

 <insert>
      import com.google.android.gms.*;
      com.google.android.gms.games.leaderboard
      import com.google.android.gms.games.snapshot.*;
    </insert>

but show a missing symbol error on games.leaderboard
so the dics say something about gradle but unreal is not using it
so how can i achieve it?