avrdude: no programmer has been specified on the command line or the config file

This usually occurs with Chinese clones of arduino. This problem is caused when the boards of older versions are installed on a new IDE. Quick fix -in IDE go to Tools > Board > Boards Manager... >Arduino AVR Boards > Select version > 1.6.8 or 1.6.9 or newer available> Install.
And choose AVRISP mkll , not Arduino as ISP.