How to fix Error Code 504 in Play Store

Error Codes are nothing new in Play Store. Just like that, the Error Code 504 appears in the Play Store during an app installation failure. If you are seeing this on your own Play Store, don’t worry. There are several solutions available to fix the problem on your phone. So, steadily follow these solutions to solve the issue.

Fix 1 – Clear the Play Store Data

These types of errors can be fixed by clearing out the Play Store data on your phone. Follow these steps-

Step 1 – Find out the Play Store icon and hold down that for a few seconds.

Step 2 – After this, touch the “” button.


information play store min


Step 3 – Once you are in the Play Store page, go to the “Storage” option to open that.


storage min 2


Step 4 – At first, we are going to try to use the “Clear cache” option.


clear cache play store min 3


After clearing the Play Store cache, try to install the app one more time.

Step 5 – If you are still getting the Error Code 504, come back to the Settings page.

Step 6 – You can use the “Clear data” option. Use that to wipe out the Play Store data.


clear data min 1



Step 7 – It will show you a cautionary message. Touch “Delete” to reset Play Store.


clear data delete min


You should be able to install apps after this.


Fix 2 – Delete your Google account from the device

Just delete the Google account from your mobile, clear the Play Store and Sign in using the same account once more.


Step 1 – Swipe up to open the list of apps on your phone. Find the “⚙️” icon and open that up.


settings to open it min


Step 2 – After this, open the “Accounts & backup” to access that part of the settings.


accounts and backup min 1


Step 3 – On the Accounts and backup page, you will see the “Manage accounts” setting. Open that up.


manage accounts min 1


Here, your phone keeps all the account-related information, password stored.

Step 4 – Now, you have to open the “Google” account to access that.


open google account min 1


Step 5 – Finally, use the “Remove account” to remove the Google account from the phone.

Step 6 – Later, tap “Remove account” to remove the account from your phone.


remove account min 2


Step 7 – Now, as you have removed the Google account, go on ahead and come back to the main Settings page.

Step 8 – Open the “Apps” option.


apps min 2


Step 9 – Search for “play” in the search box.

Step 10 – Next, tap the “Play Store” to open that up.


play store min 1


Step 11 – Later, you have to open the “Storage” option. This will lead you to the Play Store Storage information.


storage min 2


Step 12 – Finally, click “Clear data” to clear the Play Store data on your phone.


clear data main min


After clearing the Play Store data, you can add your Google account once more and get your Play Store working again.


You can now add that removed Google account to the phone and fix this issue once and for all.

Step 1 – Open the Settings, again.

Step 2 – Swipe down and open the “Google” settings. It stores all the information about your Google account.


google min


Step 3 – Next, you have to tap the “Sign in to your Google Account” to sign in to the Google account.


sign in to your google account min


Step 4 – Now just go on and follow the steps to input your Google credentials and complete the log in process as well.

Once you have followed all these steps, you can go ahead and complete the process.


Fix 3 – Use a VPN app

You should use a VPN app to bypass any kind of location-based restriction. There are some good VPN apps that are available for free or at least have a trial plan. One of the best are given below with links. Use only one at a time to fix the 504 error.

Proton VPN

Bear Tunnel(limited for free users)



install vpn min



Fix 4 – Reset all the app preferences

Reset all the app preferences on your phone.

Step 1 – Simply swipe down once and touch the “⚙️” to open that.


settings min 4


Step 2 – Scroll down slowly to find the “Apps” settings.

Step 3 – Open that up.


apps min 1


Step 4 – Just tap the “” and tap the “Reset app preferences“.

This way, you are resetting all the app associations on your phone.


reset the app prefs min


Step 5 – When you are asked for confirmation, tap “Reset” to reset the app preferences on your phone.


reset app prefs min


After resetting all the app preferences, close the Settings window.

Restart your phone once.

Give the Play Store another try. Test whether you can install an app or not.


Fix 5 – Use the WiFi connection to install the app

Opt for a WiFi connection if you are facing this problem while installing the app using the mobile data. WiFi is way more stable than a carrier connection, even if you are on a 5G plan.

Step 1 – Close the Play Store. Switch off the mobile data.

Step 2 – Then, turn on the WiFi connection and connect to a strong WiFi access point.


wifi min


Step 3 – Now, try to install the app once more.

This time you won’t face this problem.