The judge at Montgomery County Courthouse in Norristown, Pennsylvania, declared a mistrial concerning the three counts of aggravated indecent assault levelled at the 79-year-old.

Cosby’s lawyer said the entertainer and Constand were lovers sharing a consensual sexual encounter.

During the trial Cosby did not take the stand but excerpts from his 2005 to 2006 depositions in a civil suit brought on by Constand were read aloud.

Bill Cosby entering court this week, his case has ended in a mistrial (Picture: REX/Shutterstock)

Bill Cosby walks out of the Montgomery County Courthouse with his publicist Andrew Wyatt. (Picture: REUTERS/Lucas Jackson)

Constand spent over seven hours giving evidence to the court, at one stage saying: ‘In my head I was trying to get my hands to move or my legs to move, but I was frozen and those [mental] messages didn’t get there and I was very limp, so I wasn’t able to fight him, I wanted it to stop.’

Dozens of women have come forward to say Cosby had drugged and assaulted them.