# Build fails (ArtifactResolveException)

**URL:** <https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216>\
**Category:** Builds\
**Created:** [September 16, 2019, 2:45pm UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216 "2019-09-16T14:45:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![davekunicki](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@davekunicki](https://discuss.bitrise.io/u/davekunicki)\
**Post date:** [September 16, 2019, 2:45pm UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/1 "2019-09-16T14:45:28Z")

</div>

Android app won’t build because of the issue as below:

```
Caused by: org.gradle.internal.resolve.ArtifactResolveException: Could not determine artifacts for com.github.ChuckerTeam.Chucker:library:3.0.1: Skipped due to earlier error
	at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$resolveArtifacts$13(ErrorHandlingModuleComponentRepository.java:172)
	at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.performOperationWithRetries(ErrorHandlingModuleComponentRepository.java:210)
	at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifacts(ErrorHandlingModuleComponentRepository.java:170)
	at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifactResolver.resolveArtifacts(RepositoryChainArtifactResolver.java:84)
	at org.gradle.internal.resolve.resolver.DefaultArtifactSelector.resolveArtifacts(DefaultArtifactSelector.java:62)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ResolvedArtifactsGraphVisitor.getArtifacts(ResolvedArtifactsGraphVisitor.java:100)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ResolvedArtifactsGraphVisitor.visitEdges(ResolvedArtifactsGraphVisitor.java:69)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.CompositeDependencyGraphVisitor.visitEdges(CompositeDependencyGraphVisitor.java:53)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.assembleResult(DependencyGraphBuilder.java:536)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.builder.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:146)
	at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver.resolve(DefaultArtifactDependencyResolver.java:123)
	at org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationResolver.resolveGraph(DefaultConfigurationResolver.java:175)
	at org.gradle.api.internal.artifacts.ivyservice.ShortCircuitEmptyConfigurationResolver.resolveGraph(ShortCircuitEmptyConfigurationResolver.java:86)
	at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingConfigurationResolver.resolveGraph(ErrorHandlingConfigurationResolver.java:74)
	... 167 more
```

---

<div class="post-metadata">

**Author:** ![clementbretin](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@clementbretin](https://discuss.bitrise.io/u/clementbretin)\
**Post date:** [September 17, 2019, 11:40am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/2 "2019-09-17T11:40:28Z")

</div>

Hello, same problem here since this morning. I did not change anything.

---

<div class="post-metadata">

**Author:** ![Jolanda](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Jolanda](https://discuss.bitrise.io/u/Jolanda)\
**Post date:** [September 17, 2019, 2:41pm UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/3 "2019-09-17T14:41:58Z")

</div>

Same problem here. It’s retrieving a library from [Jitpack.io](http://Jitpack.io) not sure if that’s related.

---

<div class="post-metadata">

**Author:** ![domhys](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@domhys](https://discuss.bitrise.io/u/domhys)\
**Post date:** [September 17, 2019, 7:35pm UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/4 "2019-09-17T19:35:52Z")

</div>

I contacted Bitrise support today regarding this issue. It appears to be related to Jitpack and they are waiting for a response from the Jitpack support team. In the meantime I created a temporary workaround. I created a branch on which I extracted all of the libraries that are downloaded from Jitpack and added them as separate modules. I also added a script on Bitrise that rebases the currently built branch onto my newly created one. That way my builds are succeeding and I don’t have to change anything in my code (except for adding a new branch). Maybe that would be an acceptable temporary solution for you (if you don’t have too many libraries from Jitpack).

---

<div class="post-metadata">

**Author:** ![stan\_he](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@stan\_he](https://discuss.bitrise.io/u/stan_he)\
**Post date:** [September 18, 2019, 3:06am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/5 "2019-09-18T03:06:16Z")

</div>

This is really annoying and clearly an issue on the Bitrise side because everything work perfectly locally.  
I am more and more irritated by Bitrise unreliability and lack of support (actually fixing issues, not telling us to fix things ourselves).

---

<div class="post-metadata">

**Author:** ![renaro](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@renaro](https://discuss.bitrise.io/u/renaro)\
**Post date:** [September 18, 2019, 11:58am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/6 "2019-09-18T11:58:37Z")

</div>

Same problem here.

---

<div class="post-metadata">

**Author:** ![mieszko4\_ktp](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mieszko4\_ktp](https://discuss.bitrise.io/u/mieszko4_ktp)\
**Post date:** [September 18, 2019, 10:38pm UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/7 "2019-09-18T22:38:54Z")

</div>

same issue here (with com.github.yalantis:ucrop:2.2.2-native)

---

<div class="post-metadata">

**Author:** ![domhys](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@domhys](https://discuss.bitrise.io/u/domhys)\
**Post date:** [September 19, 2019, 8:51am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/8 "2019-09-19T08:51:07Z")

</div>

it seems that adding `www` to jitpack url does the trick (at least it fixed the issue for me)  
`maven { url "https://www.jitpack.io" }`

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [September 19, 2019, 8:56am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/9 "2019-09-19T08:56:13Z")

</div>

Hi there everyone!

Thanks for your patience in this matter 🙂

@stan_he I’m really sorry for you feeling frustrated, please note that Jitpack is a 3rd party tool and thus outside of our hands, the issue is not really ours to fix (you can actually see on Jitpack’s github repo a number of recent discussions about this, such as this one: [Origin Connection Time-out · Issue #3973 · jitpack/jitpack.io · GitHub](https://github.com/jitpack/jitpack.io/issues/3973))  
We have already contacted them and are waiting for their response, so we can only try and find workarounds in the meantime.

The reason your build works locally is because your computer already has the gradle cache dependencies downloaded, but since our Virtual Machines are created and destroyed in every single build, they do not amass the collection of dependencies over the years the way a physical computer does. If you were to delete your local gradle cache, you would experience the same issues locally as you do on Bitrise 😃

**BUT!** It seems that currently a workaround could be to add a `www` in the repo URL in the Gradle file:  
` maven { url "https://www.jitpack.io" }`

So please try and see if this works 😉

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [October 19, 2019, 8:56am UTC](https://discuss.bitrise.io/t/build-fails-artifactresolveexception/10216/10 "2019-10-19T08:56:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
