The teenager spared a conviction for kicking a police officer in the face is back in custody after a failed bail attempt over new allegations that he kicked another man.

The 17-year-old, who cannot be named, is accused of repeatedly kicking a 19-year-old man with about six of his friends not long after some of the group had left their school, in Melbourne’s western suburbs, last Thursday afternoon.

The teenager’s lawyer told a children’s court on Wednesday he should get bail despite a string of past violent offending and disregarding court orders, because he was in his final year at school and wanted to be a civil engineer.

‘‘He is in the most important year of schooling, that being Year 12, and he wants to do his VCE so he can attend university and study,’’ the lawyer said.

‘‘Were he to be remanded that would interfere with his study and his ability to attend university and contribute to society.’’