# Installing Android dependencies problem

**URL:** <https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305>\
**Category:** Tooling Issues\
**Created:** [December 10, 2018, 12:00pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305 "2018-12-10T12:00:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patryk.jablonski](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@patryk.jablonski](https://discuss.bitrise.io/u/patryk.jablonski)\
**Post date:** [December 10, 2018, 12:00pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/1 "2018-12-10T12:00:17Z")

</div>

Hello,

Today I have started facing the problems with a build of an Android Application. Problem is occurring during the step `install-missing-android-tools`. The only message that I can see in the logs is `Failed to find missing components, retrying...`. Problem occurs while fetching dependency `Could not find com.google.gms:google-services:4.0.2`, but it does not occur on the local machines. Is there any way to get rid of this problem for Bitrise builds?

---

<div class="post-metadata">

**Author:** ![rohitbaghela](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@rohitbaghela](https://discuss.bitrise.io/u/rohitbaghela)\
**Post date:** [December 10, 2018, 12:11pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/2 "2018-12-10T12:11:56Z")

</div>

same here  
A problem occurred configuring root project ‘src’.

> Could not resolve all artifacts for configuration ‘:classpath’.  
> Could not find com.google.gms:google-services:4.0.1.  
> Searched in the following locations:  
> [https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom](https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom)  
> [https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar](https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar)  
> [https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom](https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom)  
> [https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar](https://repo.maven.apache.org/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar)  
> [https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom](https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom)  
> [https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar](https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.jar)  
> Required by:  
> project :

---

<div class="post-metadata">

**Author:** ![patryk.jablonski](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@patryk.jablonski](https://discuss.bitrise.io/u/patryk.jablonski)\
**Post date:** [December 10, 2018, 1:17pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/3 "2018-12-10T13:17:28Z")

</div>

For info. Build started magically to work right now. There is no problem anymore. I will try to give more accurate info next time it will happen

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [December 10, 2018, 1:42pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/4 "2018-12-10T13:42:27Z")

</div>

Hy!

could you insert this to the repositories field in build.gradle file?  
`maven { url 'https://dl.bintray.com/android/android-tools/' }`

---

<div class="post-metadata">

**Author:** ![lventura](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lventura](https://discuss.bitrise.io/u/lventura)\
**Post date:** [December 10, 2018, 3:22pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/5 "2018-12-10T15:22:29Z")

</div>

I’m also getting the same problem as rohitbaghela. Adding that line didn’t fix it. Builds were working fine on Friday and nothing changed since then so could be a problem with the repo it’s pulling from.

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [December 10, 2018, 4:29pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/6 "2018-12-10T16:29:22Z")

</div>

You need to add repo which @fehersanyi-bitrise mentioned to the `buildscript` block.

> [@lventura](#):
>
> Builds were working fine on Friday

It seems that Google moved artifacts to the new maven repo on bintray.

---

<div class="post-metadata">

**Author:** ![lventura](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lventura](https://discuss.bitrise.io/u/lventura)\
**Post date:** [December 10, 2018, 6:59pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/7 "2018-12-10T18:59:14Z")

</div>

Whoops, I had it in the individual module build.gradle file, that’s why it wasn’t working. Thanks.

---

<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:** [January 9, 2019, 6:59pm UTC](https://discuss.bitrise.io/t/installing-android-dependencies-problem/7305/8 "2019-01-09T18:59:21Z")

</div>

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