Could not GET ‘play-services-location/maven-metadata.xml’. Received status code 502 from server: Bad Gateway

The problem is that a plugin (location in this case) didn’t specify a fixed version of an Android library. So in order to find which versions are available, Gradle must go to the repository to check. In this case, that repository is Bintray, which has been down for days and returning HTTP 502 Bad Request. … Read more