Open Bug 1919850 Opened 25 days ago Updated 11 days ago

./gradlew :app:installFenixDebug fails Toolchain installation problem

Categories

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

defect

Tracking

(Not tracked)

People

(Reporter: tjr, Unassigned, NeedInfo)

Details

I've mach bootstrapped and mach built, and I have an emulator running, then I try running ./gradlew :app:installFenixDebug from mobile/android/fenix and get the following error:

./gradlew :app:installFenixDebug

Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
mozconfig.gradle> Loading mach environment into a gradle extension property
mozconfig.gradle> Loading mach environment into a gradle extension property
mozconfig.gradle> Loading mach environment into a gradle extension property

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Settings file '/home/tom/Documents/moz/mozilla-unified-5/mobile/android/android-components/plugins/publicsuffixlist/settings.gradle' line: 27

* What went wrong:
Error resolving plugin [id: 'mozac.DependenciesPlugin']
> A problem occurred configuring project ':dependencies'.
   > Failed to calculate the value of task ':dependencies:compileJava' property 'javaCompiler'.
      > Toolchain installation '/usr/lib/jvm/java-21-openjdk-amd64' does not provide the required capabilities: [JAVA_COMPILER]

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@c20891d of type BuildFlowService.Parameters
   > A problem occurred configuring project ':dependencies'.
      > Failed to calculate the value of task ':dependencies:compileJava' property 'javaCompiler'.
         > Toolchain installation '/usr/lib/jvm/java-21-openjdk-amd64' does not provide the required capabilities: [JAVA_COMPILER]

* 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 6s

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

For more information, please visit BugBot documentation.

Flags: needinfo?(rsainani)
You need to log in before you can comment on or make changes to this bug.