Skip to content

JDK version error on build after updating to CLI v1.22.0 #873

Open
@StefanNedelchev

Description

Describe the bug

After updating the CLI to v1.22.0 I went into my project folder, ran bubblewrap update (which went fine) and hen I ran bubblewrap build to do a new build. It took a while and by the end this error was thrown in the console:

cli ERROR Command failed: ./gradlew assembleRelease --stacktrace

FAILURE: Build failed with an exception.

* Where:
Build file '/home/....../......-bubblewrap/app/build.gradle' line: 20

* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
      Your current JDK is located in /home/stefan/.bubblewrap/jdk/jdk-11.0.9.1+1
      You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

* Try:
> 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.

This is followed by a whole stack trace (if needed I'll post it too)

To Reproduce
Steps to reproduce the behavior:

  1. Update Bubblewrap CLI package to the latest version
  2. Open the terminal inside a bubblewrap project directory
  3. Run bubblewrap update
  4. Run bubblewrap build

Expected behavior
The app should build successfully

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux (Ububtu 24)
  • Browser Chrome

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions