If you are just beginning and have no experience with Arduino world before. First, you should take a look at some articles like Arduino for beginner. It prevents the silly faults and save you a lot of time.
The problem can be caused by using Arduino IDE 1.6.8 or previous with Arduino AVR Boards 1.6.12 or 1.6.14. They are incompatible. You can fix it by either:
Updating to a version of the Arduino IDE newer than 1.6.8.
Install a version of Arduino AVR Boards other than 1.6.12 or 1.6.14 via Boards Manager.
I have fixed the issue causing the backwards incompatibility so this issue will not occur with Arduino AVR Boards 1.6.15 and upwards.