If your internet connection is okay, but you’re still getting the error -504, try clearing data of Google Play Store.
- Go to Settings >> Apps >> All >> Tap on “Google Play Store”
- Tap “Force Stop” and “Clear Data”
For More Information Please Refer:
You May Also Like to Read: