# Why Andromeda is approaching the Milky Way in an expanding universe? [duplicate]

We know from Hubble law that the galaxy is receding from each other.

Also, the general theory of relativity predicts the metric expansion of space ( voids are increasing).

Then why Andromeda is approaching the Milky Way, I think it should be going away? Where I am getting wrong?