# Os: android environment fails to access github.com

**URL:** <https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798>\
**Category:** Linux\
**Created:** [August 20, 2019, 4:47pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798 "2019-08-20T16:47:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonLakeFlyer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/donlakeflyer/32/3914_2.png) [@DonLakeFlyer](https://travis-ci.community/u/DonLakeFlyer)\
**Post date:** [August 20, 2019, 4:47pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798/1 "2019-08-20T16:47:04Z")

</div>

Starting about a week ago our `os: android` builds started failing with this error: `fatal: unable to access 'https://github.com/mavlink/qgroundcontrol.git/': Could not resolve host: github.com`. The github portion of our .travis.yml file is common to the entire matrix. Our other environment builds continue to work fine using the same .yml. The .travis.yml file itself has not changed during that timeframe.

Not sure how to fix this. At this point our android builds are at 100% failure rate.

An example error is here: [https://travis-ci.org/mavlink/qgroundcontrol/jobs/574225809](https://travis-ci.org/mavlink/qgroundcontrol/jobs/574225809)

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [August 28, 2019, 3:14pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798/2 "2019-08-28T15:14:30Z")

</div>

Sorry for the troubles.

First, `os: android` isn’t something we support. We only support `language: android`.

Next, could you try to add `travis_retry` to your failing command to see if it helps? This will effectively retry a command up to 3 times if it fails.

---

<div class="post-metadata">

**Author:** ![DonLakeFlyer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/donlakeflyer/32/3914_2.png) [@DonLakeFlyer](https://travis-ci.community/u/DonLakeFlyer)\
**Post date:** [August 28, 2019, 4:19pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798/3 "2019-08-28T16:19:45Z")

</div>

> [@dominic](#):
>
> First, `os: android` isn’t something we support

Yeah I finally realized that. Not sure where that came from. It’s been there for years. It only started causing things to screw up recently. Removing it fixed the problem. Thanks so much.

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [August 30, 2019, 6:20pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798/4 "2019-08-30T18:20:58Z")

</div>

Thanks for confirming. It’s possible the some backend change triggered this new behaviour with `os: android` but I couldn’t track it down. Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [August 30, 2019, 6:21pm UTC](https://travis-ci.community/t/os-android-environment-fails-to-access-github-com/4798/5 "2019-08-30T18:21:01Z")

</div>


