The earliest known analogue computer in metal was the Antikythera device. However, this was certainly not the first in other forms. Some people think that mental inventions count as analogue computers, such as the invention of the zero (Ancient Egypt 1700 BC). But in that case almost every invention by mankind would count as an analogue computer, and that is not really how the term is used.