# Installing apk never finishes, making detox android e2e tests time out

**URL:** <https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314>\
**Category:** Builds\
**Created:** [March 5, 2019, 7:00pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314 "2019-03-05T19:00:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![msand](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/msand/32/2109_2.png) [@msand](https://discuss.bitrise.io/u/msand)\
**Post date:** [March 5, 2019, 7:00pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/1 "2019-03-05T19:00:09Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I’m trying to run Detox e2e tests on android in bitrise. I have the same tests working in travis and locally. For iOS, it works fine locally, on travis, and on bitrise. Everything with creating the emulator, starting it, building the android app and instrumentation seems to work. Then when it’s installing the apk to the emulator it just never proceeds and triggers the timeout instead.

## Environment:

**Where did the issue happen?**

Android Ubuntu 16.04, system-images;android-28;google\_apis;x86

Fails on the “Detox - Run E2E Tests” script step, android workflow

> **[GitHub - msand/react-native-svg-e2e: End-to-end testing of react-native-svg](https://github.com/msand/react-native-svg-e2e)**
>
> End-to-end testing of react-native-svg

> **[Builds (react-native-svg-e2e) - Bitrise CI - Bitrise](https://app.bitrise.io/app/1a150b039e9b8fbd)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

## 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?_ : Every time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : Since starting to evaluate bitrise and if it can handle android e2e or not

### Local reproduction

\_Can it be reproduced on your own Mac/PC: no

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

\_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? unable to test, not enough space on disk

## Build log

> **[Build #147 (react-native-svg-e2e) - Bitrise CI - Bitrise](https://app.bitrise.io/build/42e2db33ffa6485c)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

Also opened an issue in the Detox repo: [https://github.com/wix/Detox/issues/1194](https://github.com/wix/Detox/issues/1194)

---

<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:** [March 6, 2019, 2:25pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/2 "2019-03-06T14:25:07Z")

</div>

Hello there,

Could you please enable support user on the settings tab of the app so I could check out your configs, and try to come up with a possible solution?

---

<div class="post-metadata">

**Author:** ![msand](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/msand/32/2109_2.png) [@msand](https://discuss.bitrise.io/u/msand)\
**Post date:** [March 6, 2019, 4:29pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/3 "2019-03-06T16:29:13Z")

</div>

Hello! I’ve enabled **Bitrise Support** user for the app now.  
Managed to get x86 android working on mac now at least: [https://app.bitrise.io/build/c31c1a40907cd137](https://app.bitrise.io/build/c31c1a40907cd137)  
Using system-images;android-28;google\_apis;x86  
Latest android emulator canary using `emulator-headless -no-accel`  
Using default “Hybrid (Xamarin, Ionic, …) on macOS, includes Visual Studio for Mac, Stable channel”

---

<div class="post-metadata">

**Author:** ![msand](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/msand/32/2109_2.png) [@msand](https://discuss.bitrise.io/u/msand)\
**Post date:** [March 6, 2019, 4:30pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/4 "2019-03-06T16:30:46Z")

</div>

But, another run seems to be stuck at the same place now: [https://app.bitrise.io/build/63f2d0c56557bba1](https://app.bitrise.io/build/63f2d0c56557bba1)

---

<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:** [March 11, 2019, 7:25pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/5 "2019-03-11T19:25:10Z")

</div>

Hello there,

Sorry for the late response 😢is this issue still occurring?

also could you try running them in the background and pipe the logs into a file? 🤔 maybe that would solve this issue for you, something like `detox test args &> logs.log &`  
I’m not saying that this is good, but worth a try 😅

---

<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:** [April 10, 2019, 7:25pm UTC](https://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314/6 "2019-04-10T19:25:21Z")

</div>

Closed on April 10, 2019, 7:25pm UTC

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