The man who was injured was supposed to be shot in the chest, but the weapon clicked. Instead, he was shot in the leg.
The 19-year-old is also convicted for planning a new shooting a short time after the attempted murder in Åkersberga.
He is sentenced to 17 years in prison for, among other things, incitement to attempted murder, incitement to preparation for murder, and for involving a minor in crime, writes Smålandsposten.
Two people who were involved in the attempted murder are sentenced to 15 years in prison.
A 15-year-old boy, who was convicted of the attempted murder and preparation for the second planned murder, is sentenced to closed youth care for two years and three months.