Novak Djokovic, 35, won in three sets against Alex Molcan, 38th player in the world rankings ATP.
After dominating the Slovak in the first two sets 6-2, 6-3, Djokovic, world No.1, needed to go to the tie-break in the third set to defeat his opponent 7-6 (7-4) in 2h16.
In the third round, the Serb will face Aljaz Bedene, the 195th player in the world who eliminated Cuevas.