It’s official: rape charges have been dropped against two Brooklyn cops who admittedly had sex with a young woman while she was under arrest and handcuffed in their police van in 2017.

Ex-officers Eddie Martins and Richard Hall had faced up to 25 years prison on the original rape and kidnapping charges; they now face a maximum of 2 ¹/₃ to 7 years on a new indictment, announced in Brooklyn Supreme Court on Wednesday, charging them with felony bribery and official misconduct.

The woman, who uses the name Anna Chambers in social media, has maintained that the two cops had forcibly raped her during a Coney Island drug arrest.

Martins and Hall have countered that the sex was consensual; last month, The Post reported exclusively that the DA was abandoning the rape and kidnapping charges against them.

Lawyers for Martins and Hall have complained that Chambers repeatedly lied under oath about details of the alleged attack.

Chambers was not asked to testify before the grand jury that handed up the new indictment.

“It’s just outrageous,” said Chambers’ lawyer, Michael David. “It was a clear-cut case. She was kidnapped. There was DNA evidence,” he said.

“You can’t have consent, when you have two cops on duty. These are two cops over six feet, over two hundred pounds,” he said.

“She is 5-foot-2, 90 pounds,” he added of Chambers, who did not attend Wednesday’s court hearing.

“They have guns, they have handcuffs. You can’t have consent under those circumstances.”

As for Chambers, “She is fed up,” David said.

“She is frustrated. She is depressed. She is in a state of hopelessness right now over what is going on.”

Brooklyn prosecutors insist the ex-cops — who pleaded not guilty to the new indictment — will still be held accountable.

“We believe – as a newly-created statute recognizes – that any sexual contact between police officers and a person in their custody should constitute a crime,” said a spokesperson from the Brooklyn DA’s office

“However, that was not the law at the time of the incident.

“Because of this and because of unforeseen and serious credibility issues that arose over the past year and our ethical obligations under the rules of the professional conduct, we are precluded from proceeding with the rape charges.”

Martin’s lawyer, Mark Bederow, said, “It’s a good day for us.”

He added, of Chambers, “They dismissed the indictment because they don’t believe her. It’s not personal. Cases have to be brought with credible evidence. This wasn’t. The DA agreed.”

Peter Guadagnino, Hall’s lawyer, said the two ex-cops are not celebrating the good news.

“They are not happy. They were dedicated police officers,” the lawyer said. “They still feel hurt by them having to leave their position now a year and a half later.”