Issue
During Android builds executed on Bitrise, certain workflows may fail early in the process when required SDK (Software Development Kit) components are not properly installed or accessible. This typically manifests during the environment setup phase, where Bitrise attempts to prepare all necessary Android tooling before proceeding with the build steps.
The step titled Ensure required Android SDK components encounters a failure during the execution of a Bitrise Android build process. This failure is accompanied by the following error message:
Failed to execute Step: failed to install missing android components: command failed with exit status 1 (./gradlew "dependencies" "--stacktrace"): FAILURE: Build failed with an exception.The root error reported in the build log is:
Plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.5.0'] was not found in any of the following sourcesEnvironment
Native Mobile
Cause
This issue occurs when the Bitrise build environment attempts to install or update Android SDK components but fails due to restricted or unreachable repository mirrors. When the mirroring feature is enabled, Bitrise may redirect SDK requests to alternative repository endpoints that are either unavailable, misconfigured, or incompatible with the project’s required components. As a result, the Ensure required Android SDK components step cannot retrieve the necessary packages, and the build stops during the setup phase.
Solution/Workaround
To resolve the issue, update the Bitrise workflow step configuration by disabling repository mirroring.
For this, set:
- install-missing-android-tools@3:
inputs:
- gradlew_path: $GRADLEW_PATH
- repo_mirror_enabled: "false" # Disable mirroring
This forces Bitrise to use the official Android repositories directly, restoring proper access to SDK components and allowing the build to continue successfully.
Internal information related
277828
Additional information
- Mendix documentation: Build a Mendix Native App with Bitrise
- Other documentation:
0 Comments