This error often comes when your android project size is large.
Try the following steps to remove the error
1. Clean the project
Project > Clean
2. Increase the memory allocated in eclipse.ini
Open the eclipse.ini file in the the Eclipse folder. Then edit
-Xms128m to -Xmx512m or something higher
Hope this help you