# Could not resolve all files for configuration

**URL:** <https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622>\
**Category:** Builds\
**Tags:** step, android\
**Created:** [March 27, 2018, 7:16am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622 "2018-03-27T07:16:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fchristysen](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fchristysen](https://discuss.bitrise.io/u/fchristysen)\
**Post date:** [March 27, 2018, 7:16am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622/1 "2018-03-27T07:16:07Z")

</div>

## Description of the issue

The issue is intermittent, and the jar on which it stop is different on each issues

## Environment:

Its **Android** build, and use **Android & Docker, Ubuntu 16.04**. The log is from step **install-missing-android-tools** version **2.0.2**.

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : Sporadically
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : sporadically, can’t remember since when

### Local reproduction

The build run succesfully on local machine (Mac High Sierra)

### Local reproduction: Linux / Android (docker based) stack builds

Not tested

## Build log

`Download [https://jcenter.bintray.com/org/apache/maven/doxia/doxia-site-renderer/1.1.2/doxia-site-renderer-1.1.2.jar](https://jcenter.bintray.com/org/apache/maven/doxia/doxia-site-renderer/1.1.2/doxia-site-renderer-1.1.2.jar)  
FAILURE: Build failed with an exception.

- What went wrong:  
A problem occurred configuring root project ‘src’.

> Could not resolve all files for configuration ‘:classpath’.  
> Could not download doxia-module-xhtml.jar (org.apache.maven.doxia:doxia-module-xhtml:1.1.2)  
> Could not get resource ‘[https://jcenter.bintray.com/org/apache/maven/doxia/doxia-module-xhtml/1.1.2/doxia-module-xhtml-1.1.2.jar](https://jcenter.bintray.com/org/apache/maven/doxia/doxia-module-xhtml/1.1.2/doxia-module-xhtml-1.1.2.jar)’.  
> Could not GET ‘[https://jcenter.bintray.com/org/apache/maven/doxia/doxia-module-xhtml/1.1.2/doxia-module-xhtml-1.1.2.jar](https://jcenter.bintray.com/org/apache/maven/doxia/doxia-module-xhtml/1.1.2/doxia-module-xhtml-1.1.2.jar)’. Received status code 504 from server: Gateway Time-out  
> Could not download doxia-core.jar (org.apache.maven.doxia:doxia-core:1.1.2)  
> Could not get resource ‘[https://jcenter.bintray.com/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar](https://jcenter.bintray.com/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar)’.  
> Could not GET ‘[https://jcenter.bintray.com/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar](https://jcenter.bintray.com/org/apache/maven/doxia/doxia-core/1.1.2/doxia-core-1.1.2.jar)’. Received status code 504 from server: Gateway Time-out  
> Could not download commons-digester.jar (commons-digester:commons-digester:1.6)  
> Could not get resource ‘[https://jcenter.bintray.com/commons-digester/commons-digester/1.6/commons-digester-1.6.jar](https://jcenter.bintray.com/commons-digester/commons-digester/1.6/commons-digester-1.6.jar)’.  
> Could not GET ‘[https://jcenter.bintray.com/commons-digester/commons-digester/1.6/commons-digester-1.6.jar](https://jcenter.bintray.com/commons-digester/commons-digester/1.6/commons-digester-1.6.jar)’. Received status code 504 from server: Gateway Time-out  
> Could not download httpmime.jar (org.apache.httpcomponents:httpmime:4.1)  
> Could not get resource ‘[https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar](https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar)’.  
> Could not GET ‘[https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar](https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar)’. Received status code 504 from server: Gateway Time-out

- 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](https://help.gradle.org)  
BUILD FAILED in 1m 1s  
exit status 1`

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 27, 2018, 8:58am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622/2 "2018-03-27T08:58:24Z")

</div>

Hi @fchristysen,

> [@fchristysen](#):
>
> Received status code 504 from server: Gateway Time-out

This error comes from [jcenter.bintray.com](http://jcenter.bintray.com) and means there’s a server error on their side. Usually these are just temporary issues on [jcenter.bintray.com](http://jcenter.bintray.com) , the best solution is usually to configure Gradle Cache ([How to cache Gradle dependencies](http://discuss.bitrise.io/t/how-to-cache-gradle-dependencies/194)).

If you’d have any questions just let us know! 🙂

---

<div class="post-metadata">

**Author:** ![fchristysen](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fchristysen](https://discuss.bitrise.io/u/fchristysen)\
**Post date:** [March 27, 2018, 9:18am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622/3 "2018-03-27T09:18:12Z")

</div>

Hi Viktor,  
I’m not sure if the error comes from their side, since when I try to download the referred jar url in the error log, I could download it successfully.  
Sure, I’ll try to look on the Gradle Cache. The issue I reported could occur on different step, in **install-missing-android-tools** and **gradle build** step. CMIIW, but the gradle cache will only cache the dependencies from **gradle build** step, but not the **install-missing-android-tools** right?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 27, 2018, 9:42am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622/4 "2018-03-27T09:42:13Z")

</div>

It definitely is a bintray issue, it’s listed on their status page: [http://status.bintray.com/](http://status.bintray.com/) - [http://status.bintray.com/incidents/5qq8yrlyw1vw](http://status.bintray.com/incidents/5qq8yrlyw1vw)

Listed as intermittent, meaning not every build might be affected by this, the same resource might or might not work.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 27, 2018, 9:47am UTC](https://discuss.bitrise.io/t/could-not-resolve-all-files-for-configuration/4622/5 "2018-03-27T09:47:13Z")

</div>

> [@fchristysen](#):
>
> CMIIW, but the gradle cache will only cache the dependencies from gradle build step, but not the install-missing-android-tools right?

It will cache most from install missing android tools too.
