Andrić experienced difficulty in his studies, finding mathematics particularly challenging, and had to repeat the sixth grade.
In 1908, Austria-Hungary officially annexed Bosnia and Herzegovina, to the chagrin of South Slav nationalists like Andrić.