Error uploading sketches with latest 1.8.1

The problem is related to your update to Arduino AVR Boards 1.6.21 via Boards Manager, not the IDE version.

You need to select: Tools > Processor > ATmega328P (Old Bootloader).