Help Center/
CodeArts Build/
FAQs/
Android Builds/
How Do I Deal With the Unstable Jcenter () Configured for a Project?
Updated on 2025-10-15 GMT+08:00
How Do I Deal With the Unstable Jcenter () Configured for a Project?
Symptoms
The following error information is recorded in the build task file:
Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom'. Received status code 504 from server: Gateway Time-out
Cause Analysis
- Abnormal network conditions prevent a connection to the mirror repository that the build task depends on.
- The mirror repository is abnormal.
Solution
Go to the code repository on which the build task depends and add the following code to the build.gradle file to configure the open-source mirror repository:
allprojects {
repositories {
maven {
url 'https://repo.xxcloud.com/repository/maven/'
}
jcenter()
}
}
Parent topic: Android Builds
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot