Armie Hammer has dropped out of an upcoming film with Jennifer Lopez after messages allegedly sent by the actor leaked online.
However, he will no longer take the role.
A production spokesman told the PA news agency: "Given the imminent start date of Shotgun Wedding, Armie has requested to step away from the film and we support him in his decision."
Representatives for Hammer have been contacted for comment.
Hammer, 34, began trending on social media over the weekend after explicit messages he had allegedly sent appeared online.
In a statement to The Hollywood Reporter on Wednesday, Hammer said: “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 four months to shoot a film in the Dominican Republic. Lionsgate is supporting me in this and I’m grateful to them for that.
Shotgun Wedding will be directed by Pitch Perfect filmmaker Jason Moore and follows a couple who get cold feet before they are due to walk down the aisle.
Things are complicated further when the wedding party is hijacked by criminals.
US actor Hammer played the Winklevoss twins in The Social Network and starred opposite Timothee Chalamet in acclaimed drama Call Me By Your Name.
He most recently appeared opposite Lily James in a Netflix adaptation of Rebecca.