Android build sometimes fails to fetch Gradle 6.9.2

Description of the issue

Android builds sometimes fail because Gradle 6.9.2 can’t be fetched from gradle.org.

Environment

Where did the issue happen?

On bitrise.io with step GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib on system “Android & Docker, on Ubuntu 20.04”

Which build Step causes the issue and which version of the step?

With the version 1.0.2 of GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib

Reproducibility

  • Does a “Rebuild” help? : sometimes
  • Does a rebuild without caches help? : no
  • Does the issue happen sporadically, or every time? : sporadically
  • Does upgrading the build Step to the latest version help? : no
  • When did the issue start? : Since we updated our Android source to Gradle version 6.9.2.

Local reproduction

Can it be reproduced on your own Mac/PC? No

Build log

+------------------------------------------------------------------------------+
| (11) android-build@1                                                         |
+------------------------------------------------------------------------------+
| id: android-build                                                            |
| version: 1.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2022-05-18T10:30:01Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
Input:
- ProjectLocation: android
- AppPathPattern: */build/outputs/apk/*.apk
*/build/outputs/bundle/*.aab
- Variant: release
- Module: app
- BuildType: apk
- Arguments: 
- CacheLevel: only_deps
- DeployDir: /bitrise/deploy
Run: failed to fetch variants: Downloading https://services.gradle.org/distributions/gradle-6.9.2-bin.zip
..........10%..........20%..........30%...........40%..........50%..........60%..........70%...........80%..........90%..........100%
Installing unimodules:
 ... 
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':...'.
> Could not resolve all artifacts for configuration '...'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 17s, exit status 1
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | android-build@1 (exit code: 1)                                | 3.3 min  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...thub.com/bitrise-steplib/bitrise-step-android-build/issues |
| Source: https://github.com/bitrise-steplib/bitrise-step-android-build        |
+---+---------------------------------------------------------------+----------+

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