Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to built my project But I am facing following error Received status code 502 from server: Bad Gateway in Android Studio. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How Received status code 502 from server: Bad Gateway Error Occurs ?
I am trying to built my project But I am facing following error.
Received status code 502 from server: Bad Gateway
How To Solve Received status code 502 from server: Bad Gateway Error ?
How To Solve Received status code 502 from server: Bad Gateway Error?
To Solve Received status code 502 from server: Bad Gateway Error Just Try to Turn on Gradle Offline sync Untill you find a valid replacement. First of all Go to Gradle Then You can See There isToggle Offline Mode Just Turn On It. Here enabling gradle offline is a temporary solution So That You may use this solution till you find another solution.
Received status code 502 from server: Bad Gateway
To Solve Received status code 502 from server: Bad Gateway Error This is a global outage in JCenter. You can Track monotoring status Here. it replaces bintray status page which seems is now fully sunset and returns 502 error.
Solution 1: Turn on Gradle Offline sync
Just Try to Turn on Gradle Offline sync Untill you find a valid replacement. First of all Go to Gradle Then You can See There isToggle Offline Mode Just Turn On It.

Here enabling gradle offline is a temporary solution So That You may use this solution till you find another solution.
Solution 2: outage in JCenter
This is a global outage in JCenter. You can Track monotoring status Here. it replaces bintray status page which seems is now fully sunset and returns 502 error.
Solution 3: jcenter.bintray.com Is down
First Of All Visit jcenter.bintray.com You can see There is 403 Forbidden Right now, Thats why you are facing this error. Maybe it will resolve soon and your error will be solve hopefully. Thank You.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read