Arduino Nano v3 code uploading error

I got "avrdude: stk500_getsync(): not in sync: resp=0x00"
Why and how to fix?
Please help, thanks.

make sure you have selected the correct board under Tools -> Board