Build compartments, not one big wall
A single ring of walls fails the moment one piece breaks, because every building inside is then open. The Clash of Clans Wiki recommends layers or cells instead, so ground troops have to break through several walls to reach the whole village while your defenses keep firing.
Leave at least one tile between parallel walls. Wall Breakers deal splash damage and can open two touching layers in one blast, so a doubled wall costs you pieces without adding a second barrier.