Sketches not uploading

Are you using the TX and RX pins?? If yes, disconnect them before trying to upload any code. These pins need to be free during upload in order for your board to communicate with the computer. That solved it for me.