(TMZ) - Bill Cosby's sexual assault trial has just ended ... in a mistrial, but even before prosecutors head the breakdown among jurors they declared they will re-try the comedian.

Jurors were unable to reach a verdict on any of the three sexual assault counts.

The jury deliberated for more than 5 days and on Friday told the judge they were deadlocked. The judge pressured the jury to reach a decision by not allowing them to call it quits until 9:30 PM.

The jury deliberated for more than 52 hours, which was longer than the trial itself.

Photo: Getty Images