Open Bug 1948830 Opened 1 month ago Updated 22 days ago

Intermittent [tier 2] Android Boot Could not determine the dependencies of task ':messaging_example:compileDebugJavaWithJavac' | Could not resolve all dependencies for configuration ':messaging_example:debugCompileClasspath'

Categories

(Firefox Build System :: Android Studio and Gradle Integration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: amarc, Unassigned)

Details

Parsed log: https://treeherder.mozilla.org/logviewer?job_id=495400052&repo=autoland
Full log: https://firefoxci.taskcluster-artifacts.net/Zl_Yf80XT-Ksvr3K7aJfFw/0/public/logs/live_backing.log

26:43.15 > Task :config:jar UP-TO-DATE
26:43.15 settings.gradle> Disabled auto-publication of application-services. Enable it by settings 'autoPublish.application-services.dir' in local.properties
26:43.15 settings.gradle> Disabled auto-publication of Glean. Enable it by settings 'autoPublish.glean.dir' in local.properties
26:43.75 > Configure project :
26:43.75 > Configure project :annotations
26:43.95 > Configure project :geckoview
26:43.95 GeckoView version = 137.0.20250218060542-SNAPSHOT
26:44.35 > Configure project :messaging_example
26:44.45 > Configure project :port_messaging_example
26:44.55 > Configure project :exoplayer2
26:44.75 > Configure project :test_runner
26:44.85 > Configure project :geckoview_example
27:01.75 [Incubating] Problems report is available at: file:///mozilla-unified/build/reports/problems/problems-report.html
27:01.75 FAILURE: Build failed with an exception.
27:01.75 * What went wrong:
27:01.75 Could not determine the dependencies of task ':messaging_example:compileDebugJavaWithJavac'.
27:01.75 > Could not resolve all dependencies for configuration ':messaging_example:debugCompileClasspath'.
27:01.75    > Could not resolve androidx.lifecycle:lifecycle-viewmodel-savedstate:2.8.7.
27:01.75      Required by:
27:01.75          project :messaging_example > androidx.activity:activity:1.7.0
27:01.75       > Repository maven is disabled due to earlier error below:
27:01.75          > Could not resolve androidx.startup:startup-runtime:1.0.0.
27:01.75             > Could not get resource 'https://maven.mozilla.org/maven2/androidx/startup/startup-runtime/1.0.0/startup-runtime-1.0.0.pom'.
27:01.75                > Could not GET 'https://maven.mozilla.org/maven2/androidx/startup/startup-runtime/1.0.0/startup-runtime-1.0.0.pom'. Received status code 500 from server: Internal Server Error
27:01.75 > There are 3 more failures with identical causes.
27:01.75 * Try:
27:01.75 > Run with --stacktrace option to get the stack trace.
27:01.75 > Run with --info or --debug option to get more log output.
27:01.75 > Run with --scan to get full insights.
27:01.75 > Get more help at https://help.gradle.org.
27:01.75 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
27:01.75 You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
27:01.75 For more on this, please refer to https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
27:01.75 BUILD FAILED in 20s
27:01.75 16 actionable tasks: 16 up-to-date
27:01.92 make[3]: *** [Makefile:147: recurse_android-archive-geckoview] Error 1
27:01.92 make[2]: *** [/mozilla-unified/config/recurse.mk:34: android-archive-geckoview] Error 2
27:01.92 make[1]: *** [/mozilla-unified/config/rules.mk:359: default] Error 2
27:01.92 make: *** [client.mk:60: build] Error 2
27:02.02 W 171 compiler warnings present.
27:02.91 W Notification center failed: Install notify-send (usually part of the libnotify package) to get a notification when the build finishes.
[taskcluster 2025-02-18 06:32:49.062Z] === Task Finished ===
[taskcluster 2025-02-18 06:32:49.063Z] Unsuccessful task run with exit code: 2 completed in 1982.662 seconds

The severity field is not set for this bug.
:polly, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(polly)

looks like maybe you were offline while building? gradle needs to be able fetch dependencies.
if you retry with a network connection is it ok?

Severity: -- → S4
Flags: needinfo?(polly)

This is a bootstrap task specifically verifying that fetching dependencies and building is possible. This failed to find the dependencies from maven.mozilla.org, so I agree with Polly -- this is almost certainly a network issue. (And such intermittent issues shouldn't raise bugs for bootstrap tasks at all.)

If we wanted to address this, we'd fetch and consume the latest android-gradle-dependencies tarball, a la Bug 1933528.

You need to log in before you can comment on or make changes to this bug.