Android build failure in nightlyOssLicensesTask: missing dependencies.json file

When doing tor-browser-build Android builds I have the following error (tor-browser-build!1434 (comment 3352469)):

[gradle:error]: > A problem was found with the configuration of task ':app:nightlyOssLicensesTask' (type 'LicensesTask').
[gradle:error]: >   - In plugin 'com.google.android.gms.oss-licenses-plugin' type 'com.google.android.gms.oss.licenses.plugin.Licenses
Task' property 'dependenciesJson' specifies file '/var/tmp/build/geckoview-3e46f2a0afe8/obj-arm-linux-androideabi/gradle/build/mobile/
android/fenix/app/generated/third_party_licenses/nightly/dependencies.json' which doesn't exist.
[gradle:error]: >    
[gradle:error]: >     Reason: An input file was expected to be present but it doesn't exist.
[gradle:error]: >    
[gradle:error]: >     Possible solutions:
[gradle:error]: >       1. Make sure the file exists before the task is called.
[gradle:error]: >       2. Make sure that the task which produces the file is declared as an input.
[gradle:error]: >    
[gradle:error]: >     For more information, please refer to https://docs.gradle.org/9.2.1/userguide/validation_problems.html#input_fil
e_does_not_exist in the Gradle documentation.

Earlier in the logs I can see:

esolve mutations for :app:nightlyOssDependencyTask (Thread[Execution worker Thread 49,5,main]) started.
:app:nightlyOssDependencyTask (Thread[Execution worker Thread 49,5,main]) started.

> Task :app:nightlyOssDependencyTask UP-TO-DATE
Caching disabled for task ':app:nightlyOssDependencyTask' because:
  Build cache is disabled
  Caching has not been enabled for the task
Skipping task ':app:nightlyOssDependencyTask' as it is up-to-date.

For some reason gradle thinks nightlyOssDependencyTask is up-to-date and is skipping it, which means the dependencies.json file is not created.

Assignee Loading
Time tracking Loading