The 6.4 magnitude quake struck near the town of Sigli on Sumatra island where dozens of buildings have collapsed.
Indonesia's meteorological agency said there was no risk of a tsunami.
In 2004, Aceh was devastated by a tsunami caused by a massive undersea earthquake that killed 120,000 people in the province.