close

[Solved] Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden

Hello Guys, How are you all? Hope You all Are Fine. Today, when I am trying to make my flutter app build I am facing the following error in my terminal, Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden in java. 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 Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden Error Occurs ?

Today, when I am trying to make my flutter app build I am facing the following error in my terminal.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. 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 resource '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 403 from server: Forbidden

How To Solve Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden Error ?

  1. How To Solve Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden Error?

    To Solve Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden Error To solve this error just Upgrade Gradle to the latest version. Follow this step to Upgrade Gradle to the latest version. Open Your Build.gradle You can Find at this path android/build.gradle. Just Edit This Line classpath ‘com.android.tools.build:gradle:3.6.3’ And replace with this line classpath ‘com.android.tools.build:gradle:4.2.0’ Then open gradle-wrapper.properties file Which is located at thi path android/gradle/wrapper/gradle-wrapper.properties And Edit This line distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip Simply Replace with this line distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip Now just try to rebuild your project. Your error Must be solved now.

  2. Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden

    To Solve Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden Error To solve this error just Upgrade Gradle to the latest version. Follow this step to Upgrade Gradle to the latest version. Open Your Build.gradle You can Find at this path android/build.gradle. Just Edit This Line classpath ‘com.android.tools.build:gradle:3.6.3’ And replace with this line classpath ‘com.android.tools.build:gradle:4.2.0’ Then open gradle-wrapper.properties file Which is located at thi path android/gradle/wrapper/gradle-wrapper.properties And Edit This line distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip Simply Replace with this line distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip Now just try to rebuild your project. Your error Must be solved now.

Solution 1: Upgrade gradle to the latest version

To solve this error just Upgrade Gradle to the latest version. Follow this step to Upgrade Gradle to the latest version.

  1. Open Your Build.gradle
  2. You can Find at this path android/build.gradle.
  3. Just Edit This Line classpath 'com.android.tools.build:gradle:3.6.3'
  4. And replace with this line classpath 'com.android.tools.build:gradle:4.2.0'
  5. Then open gradle-wrapper.properties file
  6. Which is located at thi path android/gradle/wrapper/gradle-wrapper.properties
  7. And Edit This line distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
  8. Simply Replace with this line distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
  9. Now just try to rebuild your project.
  10. Your error Must be solved now.

Summery

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

Leave a Comment