Derek McInnes' side are due to be at home in the first leg on Thursday July 26, with the return match at Turf Moor a week later.
Rangers will play Shkupi of Macedonia in the first qualifying round and would take on Petrocub of Moldova or NK Osijek of Croatia if they progress.
Hibernian face NSI Runavik of the Faroes in their opening qualifier, with the first game at Easter Road on July 12. Asteras Tripolis of Greece await the winners in round two.