LOS ANGELES — Jurors took less than four hours to clear New York Knicks guard Derrick Rose and two pals of gang rape claims in a civil lawsuit brought by a former girlfriend of the NBA star.

After nearly three weeks of often graphic testimony, the six women and two men rejected the 30-year-old accuser’s allegation that the three men raped her in her apartment while she was too drunk to consent.

They were cleared of all three claims of sexual battery, battery and trespass.

Rose kept his head down and hands clasped as the verdict was read. His attorney, Mark Baute, shook Rose’s hand after each “no” verdict, and the pair hugged at the end.

Rose’s accuser, who was suing for $21.5 million, kept her head buried in her hands as if praying the entire time.

At the courthouse, the hoops star declined to comment, saying only that he’s “focused on the season.”

In a statement, he expressed gratitude for the verdict, and said he’s eager to put the trial behind him.

“It was important to prove I did not do what I was accused of, even if it meant publicly sharing very private details about my personal life,” he said.

“I am thankful that the jury understood and agreed with me. This experience and my sensitivity to it was deep. I am ready to put this behind me and focus on my family and career.”

Baute said they won’t be sharing the accuser’s name because of rape shield laws — there is still an open LAPD investigation into her claim.

“All three men were innocent from day one,” he said. “We’re very happy that a jury of six women and two men found all three men innocent, and we’re very happy that… a jury of seven white people and one Hispanic found three black men innocent.”

The woman’s lawyer, Waukeen McCoy, said his client was “devastated” by the verdict and will be assessing her appeal options.

“I think it’s a shame for women, and I think it’s a shame for this country that a celebrity can come to court and slut-shame a woman like my client,” he said.

The verdict capped off a contentious trial during which both sides leveled personal attacks at the other.

At question was whether the accuser, who had a nearly two-year-long sexual relationship with Rose, consented to having sex with the basketball player and his pals Randall Hampton and Ryan Allen at her apartment on Aug. 27, 2013.

She claimed the men broke into her Los Angeles pad and raped her while she was passed out drunk, hours after she attended a party at Rose’s Beverly Hills mansion.

The LAPD said a criminal investigation into her allegations is still ongoing despite the civil trial verdict.

During closing arguments, Baute called Rose’s accuser a “liar” who was only suing for the money.

“These guys are so far from trespassers and rapists, it’s almost comical,” he said.

Baute reminded jurors of everything Rose would stand to lose should he be found liable for the alleged sexual assault, including his Knicks contract and $100 million endorsement deal with Adidas.

He described how Rose, who was raised by a single mom, “pulled an entire family out of the South Side of Chicago” by “working his butt off” on the basketball court.

Race also became an issue, with Baute insisting Rose’s accuser was using racial stereotypes with words like”sexual deviants” to win her case.

“Those adjectives tap into stereotypes and things we find difficult to talk about, but they bear no relation to the evidence,” Baute said.

The woman’s lawyer, McCoy, described the encounter as “a classic gang rape,” saying this case “is not about race.”

“This case is about sexual assault,” he said.

McCoy said that inconsistencies in the three men’s stories showed that they’d “concocted” a tall tale.

The lawyer didn’t ask for a specific amount from jurors, saying it was up to them to decide what was appropriate.

Rose and his accuser both took the stand during the trial, and described in explicit detail the night of the alleged rape.

The woman repeatedly broke down in tears on the stand, and claimed she could only remember “flashes” of what happened because she was so drunk.

She told the jury she woke up at about 7 a.m. and noted, “my dress was around my neck, and I was just trying to figure out how I ended up that way.”’

“There was, like, lubricant on my legs and there was lubricant everywhere,” she added.

Rose testified that he had a feeling his ex-girlfriend might set him up for rape when she texted him hours after leaving the party at his place, where she had consensual sex with the Knicks player and his two friends.

“To tell you the truth, I thought she was going to claim rape,” he said. “It looked like a set-up.”

Rose said she wanted to have sex with each other them at her apartment, and never told them to stop. “Afterward, she seemed peaceful, like relaxed,” he testified.

Additional reporting by Kelly Hartog