Error uploading sketch

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xea
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xea
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Can anyone help me with this problem I'm using arduino IDE for windows and I'm unable to figure it out.

Your post is lacking all details that are needed to help you solve the issue.

Operating system, IDE version, board.

Further
1)
Under file -> preferences, enable "show verbose output during upload" and disable "show verbose output during compilation"; post the result.
2)
Anything connected to pins 0 and 1 (depending on board this might be an issue).

There are missing details on your configuration but the output you get on the PC suggest that you may try the following steps:

First make sure that your PC actually attempts to communicate with the board and the board is connected properly and actually receive the connection attempt.

How to do it?
When you click on the "upload" button on the PC side, look at your arduino board and verify that the Rx (receive ) LED lit up for a split of a second, this is an indication that the PC tried to transmit a message to the board and the information or part of it arrived to the board.
If the Tx (transmit) LED stay dead then the board did not respond to the incoming message.

In such case try to implement the following:

I solved the problem by changing the command line parameters setting from "-carduino" to "-cwiring", problem gone!

It has something to do with the automatica reset that the programming application need to do to the target board so it will jump from the current running program to the onboard startup monitor that can communicate with the downloader on the PC.
Good luck.

@cirrus275

Moved your topic to it's current location / section as it is more suitable.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

dovahar:
There are missing details on your configuration but the output you get on the PC suggest that you may try the following steps:

First make sure that your PC actually attempts to communicate with the board and the board is connected properly and actually receive the connection attempt.

How to do it?
When you click on the "upload" button on the PC side, look at your arduino board and verify that the Rx (receive ) LED lit up for a split of a second, this is an indication that the PC tried to transmit a message to the board and the information or part of it arrived to the board.
If the Tx (transmit) LED stay dead then the board did not respond to the incoming message.

In such case try to implement the following:

I solved the problem by changing the command line parameters setting from "-carduino" to "-cwiring", problem gone!

It has something to do with the automatica reset that the programming application need to do to the target board so it will jump from the current running program to the onboard startup monitor that can communicate with the downloader on the PC.
Good luck.

Well written, thanks for sharing!