He was charged two weeks after a 25-year man was stabbed in what police described as a “targeted attack”.
On May 3, the victim was sitting with two friends in a blue Honda motor vehicle in Balfour Place, Leith.
At around 11pm, the car was approached by two males from Pilrig Park who began to speak to him.
Ladies Day at Musselburgh Races: Children's nurse crowned most stylish woman
Edinburgh dad Joseph Wakeley dies days after being hit by car near Sheriffhall Roundabout
Livingston crash: 28-year-old woman pronounced dead at scene as man arrested in connection with incident
Pedestrian dies after being hit by car in Edinburgh
Edinburgh crime: councillor Kevin Lang left shaken after being ‘grabbed by throat’ while delivering newsletters
The two males then attacked the 25-year-old, stabbing him through the car window, before running off.
The victim was hospitalised by the attack.
A Police Scotland spokesperson said: Following an investigation into an attempted murder on Tuesday, 3 May, 2022 in Balfour Place, Edinburgh, officers have arrested and charged a 17-year-old male youth in connection with the incident.“The youth is due to appear at Edinburgh Sheriff Court on Monday, 16 May 2022. A report will be submitted to the Procurator Fiscal.”