Android Export: A valid Java SDK path is required in Editor Setting

Godot Version

4.2.2

Hello,

I´ve tried to set up the Android export on my Mac but something seems to be wrong with my PATH. My sdkmanager cannot be found in the terminal and in the export menu I get the following error:
“A valid Java SDK path is required in Editor Setting”.

I have Java version 17 as instructed in the documentation.
Android Studio is installed with Command Line tools.

I have changed the bash profile and the zprofile script as below, but the I don´t know if this is relevant, but I wanted to share it.
I did this based on the feedback from this thread: macos - Add SDK tools to path in Android Studio app - Stack Overflow

bash/zprofile profile:

export PATH=/Users/username/Library/Android/sdk
export PATH=/Users/username/Library/Android/sdk/cmdline-tools/latest:$PATH
export PATH=/Users/username/Library/Android/sdk/cmdline-tools/latest/bin:$PATH
export PATH=/Users/username/Library/Android/sdk/platform-tools:$PATH

export PATH=/Library/Java/JavaVirtualMachines/temurin-17.jdk:$PATH

I don´t know what to do anymore. Also because I don´t have much experience with these kind of topics and environmental variables.

I would be very thankful for some help! Maybe even a live session if possible, since would like to understand whats going on.

Best regards,
James

1 Like

I have found the solution: the tutorials I watched didn´t mention the Java sdk path. Once added it should work fine.

1 Like

i was going to ask what the file name was for the jdk path but just selecting the entire file was all it needed xD ty for this post saved me!

1 Like

Great to hear this helped someone :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.