Seeeduino V2.21 cannot upload scretch when connected the a vibration switch

I was using the following switch

i have been testing with this program http://arduino.cc/en/Tutorial/ButtonStateChange
and after that, whenever that switch is connected, i get the following error
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

any help will be greatful

You have three wires connected to the Arduino. Try disconnecting one at a time to see which cause the problem. Let us know which and we might be able to figure out why a button on D2 is interfering with uploading.

when 5V and pin (0) connected, it can be upload
it will also upload when 5v and GND are connected
it will not upload when 5V is not connected