How do I get rid of error 504?

If your internet connection is okay, but you’re still getting the error -504, try clearing data of Google Play Store.

  1. Go to Settings >> Apps >> All >> Tap on “Google Play Store”
  2. Tap “Force Stop” and “Clear Data”

For More Information Please Refer:
https://www.quora.com/How-can-I-solve-Cant-install-app-error-code-504-on-Google-play
You May Also Like to Read: