AVRdude Not in synchronization

I have always got the error when I use SPI communication :confused: :confused: >:(

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00

Last time I had changed the SPI connetion from hardware to sofware and also Changed the version of the Arduino IDE.... but again the same issue.. Also I found lot of post on internate about the same problem.. so what is the proper solution? I have none of the following issue.. >:( >:(

1 A wire is connected to pin0 2 You have the wrong COM port selected (the IDE does not see your board) 3 Your Arduino drivers are not set properly.

I have always got the error when I use SPI communication

What exactly are your trying to do? The IDE communicates by a serial connection and does not use SPI. Are you using a programmer?