Google Play Error 504 is a download failure error that appears as: “Error retrieving information from server [RPC:S-5:AEC-0]” or simply “Error 504” when you try to install or update an app. Unlike some Play Store errors that are caused by your device, Error 504 is specifically a server gateway timeout — meaning Google’s servers couldn’t complete the request in time. However, in most cases the fix is on your device side, not Google’s. Here are all the proven solutions.
What Causes Google Play Error 504?
Error 504 is a “Gateway Timeout” error — originally an HTTP server code, but in the Play Store context it means the communication between your device and Google’s download servers timed out. This happens due to: a poor or unstable internet connection, corrupted Play Store or Play Services cache causing slow authentication, Google account sync problems, an overloaded Google server (rare, temporary), or network proxy/VPN settings interfering with the connection.
8 Fixes for Google Play Error 504
1. Check Your Internet Connection Speed
Since Error 504 is a timeout error, a slow or unstable internet connection is often the direct cause. Test your connection by loading a webpage or running a speed test. If your Wi-Fi is slow, move closer to your router, switch to a 5GHz band if available, or try restarting your router. If mobile data is slow, move to an area with better coverage. For best results when downloading large apps, use a fast Wi-Fi connection rather than mobile data.
2. Clear Google Play Store Cache and Data
A corrupted Play Store cache can slow authentication to the point where the connection times out and triggers Error 504. Go to Settings → Apps → Google Play Store → Storage → Clear Cache, then Clear Data. After clearing, the Play Store will re-authenticate fresh with Google’s servers, which is typically faster and more reliable than using stale cached credentials. Restart your phone after clearing and retry the download.
3. Clear Google Play Services Cache
Google Play Services handles the underlying data transfer for all Play Store operations. A corrupted Play Services cache can cause slow connections that result in Error 504 timeouts. Go to Settings → Apps → Show System Apps → Google Play Services → Storage → Clear Cache. Only clear the cache (not data) for Play Services. Restart your device after clearing. This is the second most effective fix for Error 504 after clearing the Play Store cache.
4. Disable VPN or Proxy
VPN services and proxy configurations add extra routing steps to every network request, which can push connection times beyond Google Play’s timeout threshold and cause Error 504. Disable any active VPN app or turn off VPN in Settings → Network → VPN. If your Wi-Fi network uses a proxy, go to Settings → Wi-Fi → long-press your network → Modify Network → Advanced Options and set Proxy to “None.” Try the download again without any VPN or proxy active.
5. Change DNS to Google’s DNS
A slow or unresponsive DNS server can delay Play Store lookups to the point of timeout. Switching to Google’s fast public DNS (8.8.8.8 and 8.8.4.4) can resolve this. On Android, go to Settings → Network → Private DNS → enter “dns.google” and save. Alternatively, go to your Wi-Fi settings → long-press your network → Modify → Advanced Options → change IP Settings to Static and enter DNS 1: 8.8.8.8 and DNS 2: 8.8.4.4. Retry the download after changing DNS.
6. Force Stop and Restart Google Play Store
A Play Store session that has been running for a long time can accumulate memory issues that slow its network operations. Force stopping and restarting creates a clean session. Go to Settings → Apps → Google Play Store → Force Stop, then open the Play Store fresh. Similarly, force stop Google Play Services: Settings → Apps → Show System Apps → Google Play Services → Force Stop. Open Play Store and try the download immediately after doing this.
7. Remove and Re-add Google Account
An expired or corrupted Google account token can slow authentication dramatically, causing Error 504 timeouts during downloads. Go to Settings → Accounts → Google → select your account → Remove Account. Restart your phone, then add your Google account again via Settings → Accounts → Add Account → Google. Sign in and wait for initial sync to complete before opening the Play Store. This often resolves persistent Error 504 issues.
8. Wait and Try Again Later
In rare cases, Google Play Error 504 is caused by a temporary overload or maintenance on Google’s download servers — particularly during major app updates or global Android OS rollouts when millions of devices download simultaneously. If you’ve tried the device-side fixes above and still get Error 504, check Google’s status at google.com/appsstatus or search Twitter/X for “Google Play Error 504” to see if others report the same issue at the same time. If it’s server-side, waiting 30-60 minutes is the only fix.
Preventing Google Play Error 504
Use a fast, stable Wi-Fi connection for large app downloads. Clear the Play Store cache monthly. Avoid downloading apps while connected to VPNs or slow mobile networks. Keep Google Play Services updated and ensure your device has the latest security patches, which often improve Play Store connectivity.
Frequently Asked Questions
Is Error 504 Google’s fault or my device’s fault?
Error 504 can be either, but it’s usually your device or network. The error code originates from an HTTP gateway timeout concept, but in the Play Store it most commonly means your device’s cached data or network configuration caused the connection to be too slow and time out. Only a small percentage of Error 504 cases are caused by actual Google server issues. Apply the device-side fixes first — they resolve the error in 90%+ of cases.
Why does Error 504 happen on fast Wi-Fi?
Error 504 can occur on fast Wi-Fi if the Play Store cache is corrupted (causing slow authentication regardless of connection speed), if the Wi-Fi network uses a proxy or DNS that adds latency, or if a VPN is active. Connection speed alone doesn’t prevent Error 504 — the authentication and routing path matters just as much as raw speed.
Does Error 504 affect all apps or just one?
If Error 504 affects all downloads, the issue is with your device’s Play Store configuration or your network. If it only affects one specific app, the issue may be a server-side problem with that app’s distribution, or a conflict between that app and your device. Try a different app to determine which scenario applies to you.
Can Error 504 damage my phone?
No. Error 504 is purely a network/communication error — it causes downloads to fail but cannot damage your phone, corrupt existing apps, or delete any data. It is entirely safe to continue using your device while troubleshooting Error 504. Partial downloads that were interrupted are automatically cleaned up by the Play Store.
