Skip to content

Commit 47c8938

Browse files
committed
Update required JDK version to 17 in Exporting/Compiling for Android
- Recommend Adoptium for OpenJDK builds on both locations for consistency.
1 parent 2eb8f3d commit 47c8938

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

development/compiling/compiling_for_android.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ For compiling under Windows, Linux or macOS, the following is required:
3636
**do not use an Android SDK provided by your distribution's repositories as it will often be outdated**.
3737

3838
- Gradle (will be downloaded and installed automatically if missing).
39-
- JDK 11 (either OpenJDK or Oracle JDK).
39+
- JDK 17 (either OpenJDK or Oracle JDK).
4040

41-
- You can download a build from `ojdkbuild <https://github.com/ojdkbuild/ojdkbuild>`_.
41+
- You can download a build from `Adoptium <https://adoptium.net/?variant=openjdk17>`_.
4242

4343
.. seealso:: To get the Godot source code for compiling, see
4444
:ref:`doc_getting_source`.
@@ -51,13 +51,13 @@ For compiling under Windows, Linux or macOS, the following is required:
5151
Setting up the buildsystem
5252
--------------------------
5353

54-
- Set the environment variable ``ANDROID_SDK_ROOT`` to point to the Android
54+
- Set the environment variable ``ANDROID_SDK_ROOT`` to point to the Android
5555
SDK. If you downloaded the Android command-line tools, this would be
5656
the folder where you extracted the contents of the ZIP archive.
5757

5858
- Install the necessary SDK components in this folder:
5959

60-
- Accept the SDK component licenses by running the following command
60+
- Accept the SDK component licenses by running the following command
6161
where ``android_sdk_path`` is the path to the Android SDK, then answering all the prompts with ``y``:
6262

6363
::
@@ -70,7 +70,7 @@ Setting up the buildsystem
7070

7171
tools/bin/sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;30.0.3" "platforms;android-29" "cmdline-tools;latest" "cmake;3.10.2.4988404"
7272

73-
.. seealso:: To set the environment variable on Windows, press :kbd:`Windows + R`, type
73+
.. seealso:: To set the environment variable on Windows, press :kbd:`Windows + R`, type
7474
"control system", then click on **Advanced system settings** in the left
7575
pane, then click on **Environment variables** on the window that appears.
7676

@@ -219,7 +219,7 @@ Android might complain the application is not correctly installed.
219219
If so:
220220

221221
- Check that the debug keystore is properly generated.
222-
- Check that the jarsigner executable is from JDK 8.
222+
- Check that the jarsigner executable is from JDK 17.
223223

224224
If it still fails, open a command line and run `logcat <https://developer.android.com/studio/command-line/logcat>`_:
225225

tutorials/export/exporting_basics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Before you can export your project for Android, you must download the following
336336
software:
337337

338338
* Android SDK: https://developer.android.com/studio/
339-
* Open JDK (**version 11 is required**, more recent versions won't work): https://adoptopenjdk.net/index.html
339+
* OpenJDK (**version 17 is required**, older or newer versions won't work): https://adoptopenjdk.net/index.html
340340

341341
When you run Android Studio for the first time, click on **Configure -> SDK Manager**
342342
and install **Android SDK Platform Tools**. This installs the ``adb``

tutorials/export/exporting_for_android.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Exporting for Android
1313
Exporting for Android has fewer requirements than compiling Godot for Android.
1414
The following steps detail what is needed to set up the Android SDK and the engine.
1515

16-
Install OpenJDK 11
16+
Install OpenJDK 17
1717
------------------
1818

19-
Download and install `OpenJDK 11 <https://adoptium.net/?variant=openjdk11>`__.
19+
Download and install `OpenJDK 17 <https://adoptium.net/?variant=openjdk17>`__.
2020

2121
Download the Android SDK
2222
------------------------

0 commit comments

Comments
 (0)