The actor Terry Crews told a group of senators Tuesday that he would not appear in the movie “The Expendables 4” after one of its producers tried to intimidate him into dropping a lawsuit against a Hollywood executive who Mr. Crews says groped him at a party.

“The producer of that film called my manager and asked him to drop my case in order for me to be in the fourth installment of the movie — and, if I didn’t, there’d be trouble,” Mr. Crews said.

The actor added that after the call, he decided to “take a stand” because the producer, whom he did not name on Tuesday but had previously identified as Avi Lerner, is facing his own allegations of harassment.

Mr. Crews, who has lent a prominent male voice to the #MeToo movement, was speaking before the Senate Judiciary Committee during a hearing on the fulfillment of a bill of rights for sexual assault survivors. That law, passed in 2016, grants victims the rights to have evidence preserved for a specified period, to be notified when it is destroyed, and to receive forensic exam results.