Cleared: Henry Sanchez-Milian, 18 (pictured), and his co-defendant Jose Montano, 17, had rape charges against them dropped due to lack of evidence Friday

Maryland prosecutors have dropped charges against two immigrant teens accused of raping and sodomizing a classmate in a high school bathroom.

Montgomery County State's Attorney John McCarthy told a judge Friday that after an investigation, authorities are dropping rape and sex offense counts against 17-year-old Jose Montano, who was charged as an adult.

He and 18-year-old Henry Sanchez-Milian were charged in the alleged assault on the girl at Rockville High School in March.

Defense attorneys said the sex was consensual. They pointed to text messages in which the girl agreed to a sexual encounter; an explicit video the girl sent one of the teens; and security camera footage, which they said shows the girl running to meet one of the teens and willingly entering the restroom with him.

McCarthy said at a news conference this morning that the same charges against Sanchez-Milian also are being dropped due to lack of evidence.

'We have concluded that the facts in this case do not support the original charges filed in this matter,' he told reporters. 'Due to the lack of corroboration and substantial inconsistencies from the facts that we have obtained from multiple sources since the filing of the original charging document, the original charges cannot be sustained, and prosecution on those charges is untenable.'

The pair were accused of sexually assaulting and sodozming a 14-year-old girl inside a men's room at Rockville High School in March

The prosecutor said the case was closed following a through two-month 'painstaking' investigation, which includes a review of medical, phone and computer records, school security videos, and interviews with witnesses, reported the Washington Post.

Sanchez-Milian, who was living in the US illegally, now faces new charges of child pornography possession and distribution.

Prosecutor John McCarthy said during a press conference on Friday the charges were dropped because of 'substantial inconsistencies'

Attorney Maria Mena says Montano also faces child pornography charges in juvenile court, which she called 'egregious.'

The new criminal counts are stemming from explicit photos defense attorneys say the girl sent to Montano, which he then shared with Sanchez-Milian.

Andrew Jezic, Sanchez-Milian's defenses lawyer, slammed the decision to charge his client with possession of child pornography as 'selective prosecution of elective promiscuity.'

The rape case sparked national headlines after the White House called it an example of why President Donald Trump wants to crack down on illegal immigration.

The pair were arrested on March 16 after the 14-year-old girl went to the police claiming that Montano and Sanchez-Milian took turns raping her inside a boys' bathroom after she rejected their sexual advances.

At Friday's White House briefing, spokeswoman Sarah Huckabee Sanders was asked whether the White House unfairly jumped to conclusions in the case. She said White House spokesman Sean Spicer 'was speaking about what he knew at the time.'

According to court documents filed in the case at the time, the freshman knew only one of the teens, Montano, who allegedly asked her for a hug, then slapped her butt and asked her to walk with them.

Montano's attorney Maria Mena (pictured) told reporters it was 'egregious' that prosecutors have charged her client with child pornography possession

As the trio were passing by a boys' bathroom on the way to the gym, the 17-year-old Montano repeatedly asked the girl to have sex with him and his friend, and when she refused they allegedly forced her into the restroom.

The probable cause document described the assault in extremely graphic detail, recounting how the alleged victim grabbed onto a sink to avoid being forced into a stall, but the two suspects shoved her inside.

Once in the stall, the document stated that Montano allegedly opened the girl's top and 'pulled her breasts out to play with,' then unbuckled her pants and pulled them down.

The two teenagers then allegedly proceeded to take turns holding down the young girl while forcing her to perform oral sex on them and raping her both vaginally and anally on the toilet multiple times while communicating with one another in Spanish.

Throughout the ordeal, the document stated, the victim screamed out in pain and repeatedly told her friend Montano, and Sanchez-Milian to stop.

The allegations of raped rocked the Rockville community and made national headlines after the White House weighed in on the case

Police are pictured outside the school where the incident was reported in March

After the attack, police said Sanchez-Milian covered the victim's head with his coat and led her out of the bathroom as Montano ordered her to be quiet.

The freshman girl immediately reported the assault to school administrators and law enforcement officials were summoned to the scene to investigate.

Montgomery County Public Schools has been besieged by hundreds of racist and xenophobic calls in the wake of the incident. In response, schools beefed up police presence in an attempt to reassure the anxious community.

During a preliminary hearing in late March, Andrew Jezic, Sanchez-Milian's lawyer, told the court that the sexual encounter between his client and the girl was 'pre-planned' and consensual.

Sanchez-Milian, who is from Guatemala, came to the US illegally in August and was encountered by a US Border Patrol agent in Texas, federal immigration officials said.

He was eventually released to live with his father, Adolfo Sanchez-Reyes, 43, who was taken away by ICE agents in late March for illegally immigrating to Jessup, Maryland, from Guatemala.

Montano came to the US from El Salvador to live with relatives who are US citizens after his adoptive grandmother died in El Salvador, leaving him alone there, his lawyers said.

Mena said Friday that immigration proceedings have been initiated against him, but they will fight to keep him in the country.