The temple was built during Lord Krishna’s time. Through his foresight, he already knew that Dwaraka would be completely destroyed by a curse from Gandhari, the Kauravas’ mother.
I'm on FLAP playing FLAP
XCLL1:56:0xe8cf6ac921881efe746cbff1304b6da3add17777:0x272d8532b6abd71a398f057d925d0313bba2ab92:0xec957ddc27587bc2a7bbcf9876a09f154408866c