# Android

**URL:** https://discuss.bitrise.io/c/question-answer/android/45.md

[Latest](https://discuss.bitrise.io/latest.md) · [Categories](https://discuss.bitrise.io/categories.md) · [Tags](https://discuss.bitrise.io/tags.md)

---

## [About the Android category](https://discuss.bitrise.io/t/about-the-android-category/20781)

<div class="topic-metadata">

**Author:** [@damien.murphy](https://discuss.bitrise.io/u/damien.murphy)\
**Replies:** 0

</div>

Post your Android specific questions and answer here

---

## [Robolectric tests have become flaky](https://discuss.bitrise.io/t/robolectric-tests-have-become-flaky/26010)

<div class="topic-metadata">

**Author:** [@vincent.bolta](https://discuss.bitrise.io/u/vincent.bolta)\
**Replies:** 7\
**Last updated:** [July 3, 2026, 3:11pm UTC](https://discuss.bitrise.io/t/robolectric-tests-have-become-flaky/26010 "2026-07-03T15:11:15Z")

</div>

Since two weeks our unit tests that use Robolectric seem to be very flaky. On some runs they work perfectly well, on other runs they seem to fail with: \> Task :data:bookmarks:impl:testDebugUnitTest BookmarksRepositoryI…

---

## [Android Build: Unresolved reference KSP/Code gen](https://discuss.bitrise.io/t/android-build-unresolved-reference-ksp-code-gen/25725)

<div class="topic-metadata">

**Author:** [@Hassan.Badran](https://discuss.bitrise.io/u/Hassan.Badran)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 1:11pm UTC](https://discuss.bitrise.io/t/android-build-unresolved-reference-ksp-code-gen/25725 "2025-12-17T13:11:43Z")

</div>

We’re experiencing a build failure in Bitrise when running Android test and build steps separately. The issue does not occur locally and appears to be related to how Bitrise caches KSP (Kotlin Symbol Processing) generate…

---

## [java.lang.OutOfMemoryError: Java heap space](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011)

<div class="topic-metadata">

**Author:** [@Victvs](https://discuss.bitrise.io/u/Victvs)\
**Replies:** 5\
**Last updated:** [July 31, 2025, 8:48am UTC](https://discuss.bitrise.io/t/java-lang-outofmemoryerror-java-heap-space/25011 "2025-07-31T08:48:49Z")

</div>

Our builds for Android have started to fail. We have had successful builds in the past. I have tried to use the JAVA\_OPTS and GRADLE\_OPTS En Vars to increase the heap space, but then they fail on the Missing components …

---

## [Environment variable for VERSION\_NAME is being changed when saved](https://discuss.bitrise.io/t/environment-variable-for-version-name-is-being-changed-when-saved/25285)

<div class="topic-metadata">

**Author:** [@\_jt](https://discuss.bitrise.io/u/_jt)\
**Replies:** 3\
**Last updated:** [June 13, 2025, 7:30am UTC](https://discuss.bitrise.io/t/environment-variable-for-version-name-is-being-changed-when-saved/25285 "2025-06-13T07:30:29Z")

</div>

We use an environment variable to set the VERSION\_NAME and VERSION\_NUMBER for android release builds. We’ve been using this for years and it’s worked fine. It appears Bitrise just changed how it saves the environment v…

---

## [Android Emulator - None of the images \<API34 are working](https://discuss.bitrise.io/t/android-emulator-none-of-the-images-api34-are-working/24122)

<div class="topic-metadata">

**Author:** [@sdfgsdfgd](https://discuss.bitrise.io/u/sdfgsdfgd)\
**Replies:** 3\
**Last updated:** [May 5, 2025, 7:57pm UTC](https://discuss.bitrise.io/t/android-emulator-none-of-the-images-api34-are-working/24122 "2025-05-05T19:57:09Z")

</div>

So on ubuntu-22 the latest container, which Android API versions and which image types are supported and is working ? so far anything I tried between API 24 to 30 don’t work. 31 doesn’t work. 32 doesn’t work. None of…

---

## [Unit Tests with Mockk always fails on CI but works on locally](https://discuss.bitrise.io/t/unit-tests-with-mockk-always-fails-on-ci-but-works-on-locally/24943)

<div class="topic-metadata">

**Author:** [@sevbanBayir](https://discuss.bitrise.io/u/sevbanBayir)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 11:54am UTC](https://discuss.bitrise.io/t/unit-tests-with-mockk-always-fails-on-ci-but-works-on-locally/24943 "2025-02-13T11:54:13Z")

</div>

Hi I have some unit tests for my multi-modular Android Project and I want to run a CI pipeline with these tests but as the header says some tests that are using mockk to mocking operations are failing on CI server (using…

---

## [Deploy to Google Play](https://discuss.bitrise.io/t/deploy-to-google-play/24636)

<div class="topic-metadata">

**Author:** [@sl1](https://discuss.bitrise.io/u/sl1)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 4:19pm UTC](https://discuss.bitrise.io/t/deploy-to-google-play/24636 "2024-10-23T16:19:15Z")

</div>

Hi, I have the same issue with deploy step Authenticating Failed to create HTTP client: failed to prepare key path (), error: failed to parse url (\[REDACTED\] \[REDACTED\] \[REDACTED\] \[REDACTED\] \[REDACTED\] \[REDACTED\] \[REDA…

---

## [AVD Manager - Android - Fail Start Emulator on M1](https://discuss.bitrise.io/t/avd-manager-android-fail-start-emulator-on-m1/24503)

<div class="topic-metadata">

**Author:** [@luke92](https://discuss.bitrise.io/u/luke92)\
**Replies:** 7\
**Last updated:** [October 10, 2024, 6:48pm UTC](https://discuss.bitrise.io/t/avd-manager-android-fail-start-emulator-on-m1/24503 "2024-10-10T18:48:30Z")

</div>

Hi! I’m trying to run the E2E Tests with Detox on Android of a MobileApp built with React Native, but the workflow fails when is trying to run the emulator This Step is not yet supported on Apple Silicon (M1) machines.…

---

## [JaCoCo reports in Bitrise?](https://discuss.bitrise.io/t/jacoco-reports-in-bitrise/24572)

<div class="topic-metadata">

**Author:** [@carlos.rosas](https://discuss.bitrise.io/u/carlos.rosas)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 10:44pm UTC](https://discuss.bitrise.io/t/jacoco-reports-in-bitrise/24572 "2024-10-09T22:44:14Z")

</div>

Hi there folks, I have my project setup and working properly, I’m running tests in one of my workflows, and creating the test result through the test-info.json file, again, everything is working just fine, however, I wou…

---

## [Build failing when getting maven metadata](https://discuss.bitrise.io/t/build-failing-when-getting-maven-metadata/24339)

<div class="topic-metadata">

**Author:** [@meegan](https://discuss.bitrise.io/u/meegan)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 8:27am UTC](https://discuss.bitrise.io/t/build-failing-when-getting-maven-metadata/24339 "2024-07-25T08:27:24Z")

</div>

We’re using notifee, and starting yesterday I can’t seem to connect to the remote Maven repo: \> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/app/notifee/core/maven-metadata.xml'. …

---

## [Enable configuration cache on Birtise Android project](https://discuss.bitrise.io/t/enable-configuration-cache-on-birtise-android-project/24048)

<div class="topic-metadata">

**Author:** [@viren](https://discuss.bitrise.io/u/viren)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 7:47am UTC](https://discuss.bitrise.io/t/enable-configuration-cache-on-birtise-android-project/24048 "2024-05-01T07:47:33Z")

</div>

Did anyone try enabling configuration cache on their Birtise pipeline? When I say configuration cache, I mean Optimize your build speed | Android Studio | Android Developers which is different than build cache. If s…

---

## [Play store upload failing : Failed to commit edit, error: googleapi: Error 403: You must let us know whether your app uses any Foreground Service permissions., forbidden](https://discuss.bitrise.io/t/play-store-upload-failing-failed-to-commit-edit-error-googleapi-error-403-you-must-let-us-know-whether-your-app-uses-any-foreground-service-permissions-forbidden/23982)

<div class="topic-metadata">

**Author:** [@\_jt](https://discuss.bitrise.io/u/_jt)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 7:50am UTC](https://discuss.bitrise.io/t/play-store-upload-failing-failed-to-commit-edit-error-googleapi-error-403-you-must-let-us-know-whether-your-app-uses-any-foreground-service-permissions-forbidden/23982 "2024-04-05T07:50:26Z")

</div>

We updated the radar library in our project. implementation 'io.radar:sdk:3.9.8' That library now: Adds FOREGROUND\_SERVICE\_LOCATION permission to Android manifest. The bitrise step to deploy the build to the Play Sto…

---

## [Output VersionName from Version Catalog (libs.versions.toml)](https://discuss.bitrise.io/t/output-versionname-from-version-catalog-libs-versions-toml/23964)

<div class="topic-metadata">

**Author:** [@\_jt](https://discuss.bitrise.io/u/_jt)\
**Replies:** 2\
**Last updated:** [April 5, 2024, 1:19am UTC](https://discuss.bitrise.io/t/output-versionname-from-version-catalog-libs-versions-toml/23964 "2024-04-05T01:19:45Z")

</div>

We have a slack message at the end of the build that uses $ANDROID\_VERSION\_NAME which works great if we override the version with an ENV variable using Change Android versionCode and versionName step (which we do for a r…

---

## [Emulator gets killed and I \<insert clickbait\>](https://discuss.bitrise.io/t/emulator-gets-killed-and-i-insert-clickbait/23905)

<div class="topic-metadata">

**Author:** [@podi\_poda](https://discuss.bitrise.io/u/podi_poda)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 5:08pm UTC](https://discuss.bitrise.io/t/emulator-gets-killed-and-i-insert-clickbait/23905 "2024-03-18T17:08:44Z")

</div>

Hello dear community, I’m having an issue with the step AVD manager I have the following parameters: Initialize Android SDK Updating emulator $ /opt/android-sdk-linux/cmdline-tools/12.0/bin/sdkmanager "--verbose" "--…

---

## [Gradle missing](https://discuss.bitrise.io/t/gradle-missing/23820)

<div class="topic-metadata">

**Author:** [@onepointcf-e](https://discuss.bitrise.io/u/onepointcf-e)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 10:08am UTC](https://discuss.bitrise.io/t/gradle-missing/23820 "2024-02-26T10:08:36Z")

</div>

Hi, I am using the following config : meta: bitrise.io: stack: linux-docker-android-22.04 machine\_type\_id: standard When I run the command : - script@1: title: Build Android inputs…

---

## [Authenticating with \`--token\` is deprecated](https://discuss.bitrise.io/t/authenticating-with-token-is-deprecated/23778)

<div class="topic-metadata">

**Author:** [@guillaume.beranger](https://discuss.bitrise.io/u/guillaume.beranger)\
**Replies:** 0\
**Last updated:** [February 14, 2024, 12:50pm UTC](https://discuss.bitrise.io/t/authenticating-with-token-is-deprecated/23778 "2024-02-14T12:50:55Z")

</div>

Hey, currently with 0.11.0 of App tester deployement step on bitrise, we get that error message: App path contains a file, great!! :+1: – Checking for existing firebase-tools on PATH… Your machine already has firebase…

---

## [Can't find a solution to bitrise not finding elements](https://discuss.bitrise.io/t/cant-find-a-solution-to-bitrise-not-finding-elements/23770)

<div class="topic-metadata">

**Author:** [@oskarczestkowski](https://discuss.bitrise.io/u/oskarczestkowski)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 3:40pm UTC](https://discuss.bitrise.io/t/cant-find-a-solution-to-bitrise-not-finding-elements/23770 "2024-02-13T15:40:25Z")

</div>

Hi, I’m asking here because I’m fighting with it for quite some time. I’m using Bitrise with appium - Android gradle project. On my machine it works with no flaws (Windows + Intellij), on Bitrise though it fails every ti…

---

## [Android Instrumented Test succeeds on Bitrise but fail locally](https://discuss.bitrise.io/t/android-instrumented-test-succeeds-on-bitrise-but-fail-locally/23663)

<div class="topic-metadata">

**Author:** [@taar1](https://discuss.bitrise.io/u/taar1)\
**Replies:** 1\
**Last updated:** [February 13, 2024, 12:39pm UTC](https://discuss.bitrise.io/t/android-instrumented-test-succeeds-on-bitrise-but-fail-locally/23663 "2024-02-13T12:39:39Z")

</div>

we have a workflow for Android intstrumented tests. When we launch it on the Bitrise server it succeeds most of the time (rare fails) but when trying to launch the same workflow locally (“bitrise run build\_and\_uiautomato…

---

## [Bitrise Build Error: 'R8: java.lang.OutOfMemory' and 'Gradle Daemon Disappered'](https://discuss.bitrise.io/t/bitrise-build-error-r8-java-lang-outofmemory-and-gradle-daemon-disappered/23618)

<div class="topic-metadata">

**Author:** [@londhep](https://discuss.bitrise.io/u/londhep)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 3:53pm UTC](https://discuss.bitrise.io/t/bitrise-build-error-r8-java-lang-outofmemory-and-gradle-daemon-disappered/23618 "2024-02-06T15:53:29Z")

</div>

Following an update of the Android Gradle distribution url version from 8.2 to 8.4, the ‘android-build@1’ step in our bitrise workflow encountering an 'R8: java.lang.OutOfMemory: GC overload limit exceeds’ error. Increa…

---

## [Too Many Open Files running Unit Tests](https://discuss.bitrise.io/t/too-many-open-files-running-unit-tests/23715)

<div class="topic-metadata">

**Author:** [@byates-fleetio](https://discuss.bitrise.io/u/byates-fleetio)\
**Replies:** 1\
**Last updated:** [January 31, 2024, 12:33pm UTC](https://discuss.bitrise.io/t/too-many-open-files-running-unit-tests/23715 "2024-01-31T12:33:57Z")

</div>

During our unit test workflow we use the following gradle command to run tests. $ /bitrise/src/gradlew “testDebugUnitTest” The tests were working and quite stable but suddenly they began to fail 100% of the time with t…

---

## [Bitrise Remote Build Cache fails due to big payload frame](https://discuss.bitrise.io/t/bitrise-remote-build-cache-fails-due-to-big-payload-frame/23320)

<div class="topic-metadata">

**Author:** [@sembozdemirflink](https://discuss.bitrise.io/u/sembozdemirflink)\
**Replies:** 1\
**Last updated:** [January 19, 2024, 7:04am UTC](https://discuss.bitrise.io/t/bitrise-remote-build-cache-fails-due-to-big-payload-frame/23320 "2024-01-19T07:04:09Z")

</div>

Hi all, We just enabled Bitrise Remote Build Cache on our workflows. However, some workflows are failing because of the following issue. Do you have any solution for this? \* What went wrong: Execution failed for task '…

---

## [Firebase App Distribution Error 401](https://discuss.bitrise.io/t/firebase-app-distribution-error-401/23544)

<div class="topic-metadata">

**Author:** [@navaljr](https://discuss.bitrise.io/u/navaljr)\
**Replies:** 0\
**Last updated:** [November 23, 2023, 2:57am UTC](https://discuss.bitrise.io/t/firebase-app-distribution-error-401/23544 "2023-11-23T02:57:18Z")

</div>

All of a sudden, our Firebase App Distribution step stopped working and kept on failing producing the following error: Error: failed to upload release. HTTP Error: 401, Request had invalid authentication credentials. Ex…

---

## [Android Lint how to](https://discuss.bitrise.io/t/android-lint-how-to/23524)

<div class="topic-metadata">

**Author:** [@davidbauer](https://discuss.bitrise.io/u/davidbauer)\
**Replies:** 1\
**Last updated:** [November 20, 2023, 6:50pm UTC](https://discuss.bitrise.io/t/android-lint-how-to/23524 "2023-11-20T18:50:54Z")

</div>

I’m trying to configure a Lint workflow. Regarding following step, how do I do this? You can set any gradle argument to the gradle task in the Additional Gradle Arguments input. For example I need to define abortOnErr…

---

## [How do we upload and use android keystore file](https://discuss.bitrise.io/t/how-do-we-upload-and-use-android-keystore-file/23322)

<div class="topic-metadata">

**Author:** [@prolificcoder](https://discuss.bitrise.io/u/prolificcoder)\
**Replies:** 0\
**Last updated:** [September 17, 2023, 10:14pm UTC](https://discuss.bitrise.io/t/how-do-we-upload-and-use-android-keystore-file/23322 "2023-09-17T22:14:30Z")

</div>

I am getting this error Cannot convert URL '\[REDACTED\]' to a file. on my pipeline Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation I created the keystore file and it works locally. I…

---

## [Android SDK 34](https://discuss.bitrise.io/t/android-sdk-34/23124)

<div class="topic-metadata">

**Author:** [@mlewandowskipt](https://discuss.bitrise.io/u/mlewandowskipt)\
**Replies:** 0\
**Last updated:** [July 31, 2023, 2:27pm UTC](https://discuss.bitrise.io/t/android-sdk-34/23124 "2023-07-31T14:27:26Z")

</div>

Hi, can we have base Android image updated with SDK 34? Android 14 has reached platform stability and the first revision of SDK Platform 34 is already there. This would help us avoid running install-missing-android-tools…

---

## [Android Unit tests started failing suddenly](https://discuss.bitrise.io/t/android-unit-tests-started-failing-suddenly/23119)

<div class="topic-metadata">

**Author:** [@hbb20\_N6r](https://discuss.bitrise.io/u/hbb20_N6r)\
**Replies:** 0\
**Last updated:** [July 28, 2023, 5:11pm UTC](https://discuss.bitrise.io/t/android-unit-tests-started-failing-suddenly/23119 "2023-07-28T17:11:21Z")

</div>

All of my unit tests on Bitrise started failing today. They were working yesterday on Bitrise and still runs just fine on local machine. On bitrise, it fails with following error: java.lang.AssertionError at MavenArtif…

---

## [Node Version Manager step is causing permission denied error during yarn setup](https://discuss.bitrise.io/t/node-version-manager-step-is-causing-permission-denied-error-during-yarn-setup/22804)

<div class="topic-metadata">

**Author:** [@tyler.hackett](https://discuss.bitrise.io/u/tyler.hackett)\
**Replies:** 1\
**Last updated:** [June 5, 2023, 6:20pm UTC](https://discuss.bitrise.io/t/node-version-manager-step-is-causing-permission-denied-error-during-yarn-setup/22804 "2023-06-05T18:20:18Z")

</div>

Here is the build url: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation This error started occurring right after one of our team members added the NVM step in our workflow using the …

---

## [App not installed as package appears to be invalid](https://discuss.bitrise.io/t/app-not-installed-as-package-appears-to-be-invalid/22469)

<div class="topic-metadata">

**Author:** [@prazon](https://discuss.bitrise.io/u/prazon)\
**Replies:** 1\
**Last updated:** [May 8, 2023, 1:18pm UTC](https://discuss.bitrise.io/t/app-not-installed-as-package-appears-to-be-invalid/22469 "2023-05-08T13:18:30Z")

</div>

Hi everyone, My Android workflow is successful and generates a signed APK deployed to Bitrise. When I download and install the APK from the public install page. It gives me the error: “App not installed as package appea…

---

## [Gradle cach have problem](https://discuss.bitrise.io/t/gradle-cach-have-problem/22522)

<div class="topic-metadata">

**Author:** [@Sergeii](https://discuss.bitrise.io/u/Sergeii)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 6:04pm UTC](https://discuss.bitrise.io/t/gradle-cach-have-problem/22522 "2023-04-27T18:04:26Z")

</div>

We have problem in step gradle-cache. In save and restore. This is a project in an organization. cache upload failed: failed to get upload URL: HTTP 403: {"message":"Unfortunately, this step is not available on your cur…

[Next page](https://discuss.bitrise.io/c/question-answer/android/45.md?page=1)
