Andersen gave up an early goal to Anze Kopitar and then made 30 saves to bring the Ducks their 21st home win in 24 tries.
Dustin Penner scored the tying goal with 6:09 to go in the second period and Patrick Maroon produced what turned out to be the game-winner four minutes later.
Penner's goal came on the power play and Maroon beat Jonathan Quick with a wraparound shot.
The Kings suffered their fourth straight loss. Quick gave up two goals on just 21 shots.
2014: The Year in Music [PHOTOS]