Armie Hammer has exited the movie 'Shotgun Wedding' in which he was due to star opposite Jennifer Lopez.

Hammer also released a statement in which he said the reason for his departure was "in light of the vicious and spurious online attacks against [him]."

Recently, there were leaked messaged claiming to detail the actor's sex life. They indicated that he is supposedly interested in cannibalism and violent sexual fantasies.

The statement from Armie Hammer statement reads: "I'm not responding to these bulls— claims but in light of the vicious and spurious online attacks against me, I cannot in good conscience now leave my children for 4 months to shoot a film in the Dominican Republic.

"Lionsgate is supporting me in this and I’m grateful to them for that."

A production spokesperson said: "Given the imminent start date of 'Shotgun Wedding,' Armie has requested to step away from the film and we support him in his decision."

The role will now be recast.

'Shotgun Wedding' is by 'Pitch Perfect' director Jason Moore.

It follows a couple who whisk their quirky families off to their destination wedding, just as they're starting to get cold feet. Matters turn worse still when the entire party is taken hostage.

Hammer most recently starred in 'Rebecca' opposite Lily James. He's due to star in 'Death on the Nile' and a sequel to 'Call Me By Your Name'.