avr-g++: no such file or directory

Hey,

had the same issue:

avr-g++: error: device-specs/specs-atmega328p: No such file or directory

Problem solved after removing all IDEs on my system (Arduino, Python, Visial Studios).

Restarted and reinstalled Arduino, now it works.