stk500_getsync() not in sync

I'm getting this error message when uploading my sketch:

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
An error occurred while uploading the sketch

I've noticed that disconnecting from pin 0 solves the problem.
[EDIT]
Found confirmation for pin 0 problem, could someone knowledgeable comment on this issue please?

Why does that occur? How do I resolve it? Are there common workarounds?
Does that mean I can't use Digital0 in my project?

Digital 0 and Digital 1 are the pins used by the hardware serial port. If you want to use Serial you can't use those pins for digital I/O. The USB chip is connected to those pins for sketch upload. If your hardware interferes with either pin you will have to disconnect it to upload.