Basically for this error you have to clear the cache and some other info.
Goto Settings. Choose Applications. Tap on the All Tab at the top. Locate and tap on the Play Store app. Tap on the Clear Data button. Tap on the OK button to confirm. Tap Clear Cache too