shreyaspp:
avr-g++: error: device-specs/specs-atmega328p: No such file or directory
This specific error has a different cause. You should be able to fix it by following these instructions:
- Start Windows Control Panel.
- Navigate to System and Security > System > Advanced system settings.
- Click the "Advanced" tab.
- Click the "Environment variables..." button.
- In the "System Variables" list, you should see "GCC EXEC PREFIX". Click on it.
- Click the "Delete" button.
- Click the "OK" button.
The error should now be fixed.