Unable to load Maven meta-data from. Received status code 502 from server: Bad Gateway
Channel: Dipak Prasad
Date: 2021-12-16

In this video you will the solution for given below error.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
 Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
    Could not resolve com.google.android.gms:play-services-location:16.+.
     Required by:
         project :app  project :location
       Failed to list versions for com.google.android.gms:play-services-location.
         Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
             Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

* Try:
 Run with --stacktrace option to get the stack trace.
 Run with --info or --debug option to get more log output.
 Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 33s
Exception: Gradle task assembleDebug failed with exit code 1

GitHub Issue: https://github.com/flutter/flutter/issues/94400
TestFairy Blog: https://testfairy.com/blog/jcenter-and-bintray-is-shutting-down-what-to-do/