Play Store error: Error while retrieving information from server, when trying to install apps I cannot install applications from the Google Play Store. When I try, it says "Error while retrieving information from server."

My phone is a Samsung Galaxy S4, running Android 4.3. How can I fix this problem?
These steps should fix this.


Go to settings> apps >play store. Then tap clear data and cache
Go to settings>accounts>Google then  remove account
Reboot your phone
Log in with your Google account and open play store.
Done.