cannot access device-specs for 'atmega32u4' expected at 'device-specs/specs-atme

Eew. Looks like something awful happened to the compiler and/or libraries.

Uninstall IDE.

Delete C:/users/(your username)/AppData/Arduino15 (note that appdata is a hidden folder) - obv. the arduino15 folder is in a different location on mac/linux; google will tell you where if you're on those.

Reinstall IDE.