. Advertisement .
..3..
. Advertisement .
..4..
When we try to create the flutter application, we receive the following message in the terminal: Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden. Let’s explore a solution to this problem in our next blog post.
What Is The ”Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden” Error?
The error occurs when you try to create the flutter application. Here’s what you receive on the terminal.
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 Resolve ”Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden” Error
Solution: Update Gradle to the most recent version
A build automatic tool for multilingual software development is called Gradle. The tasks of packaging and compilation, such as testing, deployment, and publication, are all under its control. Java (as well as Kotlin, Groovy, and Scala), C/C++, and JavaScript are among the languages that are supported. Additionally, it gathers statistics information on how software libraries are used globally.
After researching, we found that the best solution to solve the error ”Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden” is updating to Gradle to the latest form.
Following is the procedure to update Gradle. Let’s follow it:
- Open the Build. gradle file.
- You may find it in the following path: android/build.gradle.
- Replace the ‘com.android.tools.build:gradle:3.6.3’ line classpath with ‘com.android.tools.build:gradle:4.2.0’ in the gradle-wrapper.properties file, which is located at the path android/gradle/wrapper/gradle-wrapper.properties.
- Change https://services.gradle.org/distributions/gradle-5.6.4-all.zip to https://services.gradle.org/distributions/gradle-6.7.1-all.zip. Then your problem is solved.
After you finish these steps, your error will disappear and your program will work well.
Conclusion
Our post should have shown you how to fix the Could not GET ‘https://google.bintray.com/…/maven-metadata.xml’. Received status code 403 from server: Forbidden error. The answer may not be ideal, but you may improve it by incorporating your suggestions. If you have any opinions on this issue or need additional assistance, please share them with the community so that we can assist you. Thank you for your time!
Read more
→ Tips On Solving The Error: “Received status code 502 from server: Bad Gateway”
Leave a comment