Skip to content

[pull] dev from tauri-apps:dev - #409

Merged
pull[bot] merged 2 commits into
code:devfrom
tauri-apps:dev
Aug 13, 2026
Merged

[pull] dev from tauri-apps:dev#409
pull[bot] merged 2 commits into
code:devfrom
tauri-apps:dev

Conversation

@pull

@pull pull Bot commented Aug 13, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tenderdeve and others added 2 commits August 13, 2026 16:34
* feat(cli): warn when Java is too new for the bundled Gradle

Installing a very recent JDK (e.g. Java 25/26) while Tauri ships
Gradle 8.14 makes Android builds fail with a cryptic 'Failed to
assemble APK' error. Detect the active Java feature version during
the Android env setup and warn upfront when it exceeds what the
bundled Gradle can run, pointing at the Gradle/Java compatibility
matrix.

Closes #15385

* refactor(cli): detect Java version without spawning a subprocess

Read the major version from the JDK's `release` metadata file instead of
running `java -version` on every Android command, so the compatibility
warning no longer adds process-spawn overhead to init/dev/build.

* feat(cli): derive Java/Gradle compat from the project's Gradle version

Read the Gradle version from the project's gradle-wrapper.properties instead
of a hardcoded template constant, so the warning stays correct when users
upgrade Gradle. Skip the warning when the project or Gradle version can't be
determined (and for Gradle 9+, which tracks new Java quickly).

* refactor(cli): move Android Java/Gradle checks to a dedicated module

Extract the Java detection and Java/Gradle compatibility checks out of
android/mod.rs into android/java.rs, and recommend the exact supported
Java ceiling in the warning instead of a stale LTS list. Addresses @Legend-Master's feedback.

* revert ensure java

* move the check to get_config
the project path is only available after it

* check 9.1 and 9.4

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
Co-authored-by: Tony <legendmastertony@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Aug 13, 2026
@pull pull Bot added the ⤵️ pull label Aug 13, 2026
@pull
pull Bot merged commit e3bdc03 into code:dev Aug 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants