Export to android. Linux Ubuntu 24. Java SDK (JDK)

Godot Version

4.3

Question

Godot gives an error does not accept the path of Java SDK. Export to android. Linux Ubuntu 24
There was a discussion on github about this issue, but it is not resolved. The path to the Java SDK is correct, but GODOT reports an error.

I installed the JDK as stated in the instructions:

As a result, I got the following path: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java


But GODОT doesn’t accept it.
If I change it to : /usr/lib/jvm/temurin-17-jdk-amd64
it also doesn’t accept it.

According to the instructions it works: temurin-17-jdk-amd64
and you have something different: java-17-openjdk-amd64

I have a PC on Intel. Why do I get an -amd64 file?

For what it’s worth, here is my OpenJDK path that I use for Android (including Quest) programming:

image

You will use amd64 even on Intel CPUs, and amd64 refers to the 64-bit standard that AMD developed and that AMD and Intel both use for cross-compatibility.

Thank you. But I have a different way:
/usr/lib/jvm/temurin-17-jdk-amd64
But it doesn’t work.

Eclipse Temurin Latest Releases 21.0.5+11-LTS or is it necessary to install version 17?

this path does not accept Godot :
/usr/lib/jvm/temurin-17-jdk-amd64

Specified the path to SDK manually, going through each folder along the way. The path turns out to be strange. Why does Godot do this?
/run/user/1000/doc/75f4958b/temurin-17-jdk-amd64

The program allowed export, but the .apk was not formed.
Gives an error:

Attempting to parent and popup a dialog that already has a parent.
editor/export/editor_export_platform.h:182 - Export: Failed to build Android project, check output for error

sh: 1: /home/iaro/snap/godot4/common/Solaris/android/build/gradlew: Permission denied

I can’t figure out what this means? The problem is in gradle?