erro when upload sketch

I am a beginer in arduino.
When i upload my sketchs, compiling is ok, but an message apears for all sketch :

avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again

I don't understand why. Please help me.

You need to select the board to compile for/upload to. It does not appear that you have done that.

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.

Good luck and have fun.

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.

thanks PERT1234.

I fixed my bug as you showed.

thank you so much.