Automate Android & Java SDK setup - #121849
Conversation
6941810 to
f7218b5
Compare
This doesn't seems like the right place for this button. Or, we can also go with the approach we had discussed:
|
0316cb0 to
9e543e0
Compare
Both the Suggestions for other locations are welcomed though. And I welcome input from the @godotengine/usability team. |
|
I'm running into errors extracting the Java SDK when testing on Windows.. Will dig into the issue tomorrow. |
9e543e0 to
a1e8c10
Compare
d8c6994 to
dd1be84
Compare
Fixed the issue on Windows, and validated the feature works as expected. |
dd1be84 to
8410480
Compare
|
The class should be called |
8410480 to
2bb3aec
Compare
|
Feedback from discussions with @dsnopek and @syntaxerror247:
|
2bb3aec to
6cf03be
Compare
6cf03be to
3ec23f2
Compare
9560db6 to
49d9c9e
Compare
c814b3e to
0ccc595
Compare
|
Needs a rebase |
0ccc595 to
54c5a31
Compare
| if (!AndroidSDKManager::is_java_sdk_setup()) { | ||
| setup_android_java_sdk->set_text(TTRC("Setup Java SDK")); |
There was a problem hiding this comment.
| if (!AndroidSDKManager::is_java_sdk_setup()) { | |
| setup_android_java_sdk->set_text(TTRC("Setup Java SDK")); | |
| if (!AndroidSDKManager::is_java_sdk_setup() && !AndroidSDKManager::is_android_sdk_setup()) { | |
| setup_android_java_sdk->set_text(TTRC("Setup Android Build")); | |
| } else if (!AndroidSDKManager::is_java_sdk_setup()) { | |
| setup_android_java_sdk->set_text(TTRC("Setup Java SDK")); |
There was a problem hiding this comment.
Are you suggesting to change the label when both SDKs are not set up? I'm not sure I see what difference that would make.
54c5a31 to
07d2efe
Compare
syntaxerror247
left a comment
There was a problem hiding this comment.
Looks good and works as expected (tested on Linux). This is a really great improvement to the Android build setup!



What problem(s) does this PR solve?
This PR introduces the
AndroidSDKManagerclass which is used to automate the download, setup and management of the Android and Java SDK in the Godot editor.AndroidSDKManagerchecks whetherexport/android/android_sdk_pathin the Editor Settings is valid.AndroidSDKManagerdownloads and uses the Android CLI to query, set up and update the Android SDK packages used by the Godot editor.export/android/android_sdk_pathis updated once the set up is complete with the new location.AndroidSDKManagerchecks for the presence of a valid Java SDK at the path specified byexport/android/java_sdk_pathin the Editor Settings.AndroidSDKManagerdownloads and sets up a version of the Java SDK from https://adoptium.net/.export/android/java_sdk_pathis updated once the set up is complete with the new location.Screen.Recording.2026-08-10.at.12.37.10.PM.mov
The feature is can be accessed from two locations:
Export Presetswindow when an Android preset is added, and the editor detects that the Android / Java SDK is not valid.Install Android Build Template...in the Project menu was renamed toSetup Android Build.... The updated button triggers the prompt for installing the Android / Java SDK when it detects they are not properly set up.Advanced users still have the ability to set up and configure the Android and/or Java SDK on their own if desired.
Remaining TODOs: