L'Armentera () is a municipality in the comarca of Alt EmpordÃÂ, Girona, Catalonia, Spain, on the coastline of the Costa Brava.