Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

My device is Motorola Xoom MZ604. The internet connectivity is 4G WiMax via my laptop as hotspot. The problem is when I'm trying to download any app from Google Play Store, it gives me an Error 504 with the message I mentioned in title.

However, if I navigate to the application via browser and click: Install → Select Device → Install and then restart my device, it sometimes works.

Some googling brought me that it's a gateway timeout error. But I'm still unable to figure out how to work around the problem. So looking forward for your help.

share|improve this question

4 Answers 4

According to the list of status codes at Wikipedia, a 504 error means the following:

504 Gateway Timeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

In other words: the culprit should neither be (on) your device, nor (at) Google Play -- but in between.

A thread on the Nook forum describes the very same problem, and one of the conclusions there is:

Generally, that means a Gateway error and I would suspect the problem being on the router end rather than the Nook side. Sometimes a router reset will cure it.

Which corresponds to my conclusion. So if you're using mobile data, it might help to switch data off and on again (or better: switch to airplane mode and back), in the hope you will get a connection into a different segment of your provider's network (and thus a different gateway on that end).

From a thread on XDA about all the Google Play Error Codes

Method 1:

  • clear data
  • clear cache of google play store & google service framework

Method 2:

  • remove your gmail account
  • reboot
  • Re-add account

Funnily, the very same issue comes to a very different conclusion on Yahoo answers: here the user had not enough space on his device, so after removing some other app it suddenly worked. I suspect this was a co-incidence (when he tried again after having freed up space, the gateway was "fixed") -- but it cannot hurt to check for that.

Several more sulutions might pop up with the time. To me it proved helpful to search Google for '"Google Play" "error 504"'.

share|improve this answer
I added some info I found on XDA about the error code. Didn't want to create a new answer because this one has a lot of useful information about what it could be, and solutions. –  Ryan Conrad Jan 1 at 15:01
Thanx, @RyanConrad – but I doubt that clearing local data can solve anything on the remove server: 5xx are server-side errors. So what should manupulating the local installation achieve here? Except, of course, if the connection "playstore error code <-> HTTP response code" is totally wrong. –  Izzy Jan 1 at 15:04
I don't know if 504 error from google play is the same as a 504 HTTP error. If it actually is an HTTP 504, i agree, it won't fix anything on the server. –  Ryan Conrad Jan 1 at 15:06
Thanks again, @RyanConrad! And more confusion: What UID changed? That of the (installed) app? In that case, the XDA solution wouldn't help. Here are several pointers at SO on INSTALL_FAILED_UID_CHANGED suggesting completely different approaches. If that's the same error, that is: some of those questions rather connect it to the "-24" error. –  Izzy Jan 1 at 15:40
UID is usually consider the UserID, sometimes called a SID in windows. Which if it did "change", then it would make sense as to why those methods do work, because it re-initializes the UID (method 2), or re-caches what it thinks the UID is (method 1). –  Ryan Conrad Jan 1 at 15:43

Try resetting the play store app. You won't lose your apps following these steps. Nothing important will be lost.

Steps to follow on a motorola xoom

  1. Go to the app drawer (menu)
  2. Tap settings
  3. Tap applications
  4. Tap the "All" tab
  5. Scroll through and look for play store
  6. Tap Play Store (not play store services!)
  7. Tap "clear data"
  8. You will then get a warning, click "ok"

That's it, go through your problem again and see if it fixed. Bear in mind you will have to re-accept the terms and conditions for the play store app, when this comes up, simply click "accept"

share|improve this answer
Great i will try this out and let you know. –  Samiron Dec 19 '12 at 2:53
Ok. Glad I could help! –  cw1998 Dec 19 '12 at 21:06
Ya :) i will surely reply about how your solution worked for me but probably will be a bit late. being busy at this moment :( –  Samiron Dec 20 '12 at 3:43

Setting the phone into Airplane mode and back did the trick for me. So it most likely was indeed the Gateway issue. Tip though. Dont just turn it on then off. Wait about 60 seconds before you turn airplane mode off again. If you just toggle it, it picks up the same gateway.

share|improve this answer

This could also appears when you trying to install an app that is not install on the current user, but still installed on the guest or another user.

You have more that one user on Lollipop devices.

share|improve this answer

protected by Ryan Conrad Dec 31 '14 at 17:11

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.