Play Store It is the official store of Google and the Android operating system, so it's the store of most used applications around the world and the one that has more applications available Although in general it has a good performance and is very good optimized, in some occasions it usually presents proofs that prevent us install or update applications correctly.
The error 504 of the Play Store is one of the most common mistakes, which usually occur as a failure in the gateway that is associated with the connection of slow internet or with little WiFi coverage. First of all, you have to know that it is not a serious error and that you should be able to solve it without many complications, besides that there are different ways to solve it.
Many of the problems that may arise in the Google Play Store they are usually solved by deleting cache and data, and the error 504 is not an exception.
To delete do this just follow these steps:
Go to Settings> Applications> All.
Within the list of applications search Google Play Store Y select it
On the application page search and select the option Delete data and then Clear Cache.
Once you have finished doing this with the Google Play Store application you have to do the same with Google Play Services Y Google Play services framework. Now try to install or update the application again to check if the errors have been fixed.