NORRISTOWN, Pa. — Bill Cosby’s retrial on sexual assault charges will take place next March, five months later than previously planned, to allow his new defense team time to prepare for the case, a Pennsylvania judge ruled on Tuesday.

Judge Steven T. O’Neill of the Montgomery County Court of Common Pleas also said that he expected the jury to be selected from the local county rather than from the other side of Pennsylvania, where the jurors who sat for Mr. Cosby’s first trial were selected. That trial ended with a hung jury in June.

Mr. Cosby’s legal team for the first trial had sought a change of venue, arguing that pretrial publicity had possibly biased potential jurors from Montgomery County, an area just outside Philadelphia where Mr. Cosby owns a home. He is accused of assaulting a Temple University staff member there in 2004. Judge O’Neill did not allow a change of venue, but did allow the jurors to be selected from Allegheny County, about 300 miles away.

Mr. Cosby’s new legal team apparently did not share that concern about pretrial publicity. After closed-door discussions with lawyers from both sides, Judge O’Neill said: “I will not be receiving a new motion seeking a change of venue or venire.”