The seven-time champion at the All England Club was forced to pull out ahead of his quarter-final at Roland Garros against Casper Ruud after tearing the medial meniscus in his right knee.
The 37-year-old Serbian world number two said earlier this week he would only play at Wimbledon if he was fit enough to “fight for the title”
“I didn’t come here to play a few rounds,” he told the BBC. “If I know I can play close to my maximum or at maximum, then I’ll play. If not, then I’ll give somebody else a chance to play.
“I really will only play if I know I am in a state which is good enough to go far in the tournament and fight for the title, so that’s the condition.
Djokovic, who has won 24 Grand Slams, has reached the Wimbledon final for the past five years, losing a thrilling five-setter last year to Carlos Alcaraz.
He will attempt to win an elusive Olympic gold medal at the Paris Games, which start on July 26.