Skip to content

Commit 91a4273

Browse files
committed
Update the Android documentation for Godot 4.3
1 parent 8b2533d commit 91a4273

File tree

4 files changed

+10
-32
lines changed

4 files changed

+10
-32
lines changed

contributing/development/compiling/compiling_for_android.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Setting up the buildsystem
6868

6969
::
7070

71-
cmdline-tools/latest/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"
71+
cmdline-tools/latest/bin/sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;34.0.0" "platforms;android-34" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;23.2.8568313"
7272

7373
.. 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

tutorials/export/exporting_for_android.rst

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ Download the Android SDK
2828

2929
Download and install the Android SDK.
3030

31-
- You can install the Android SDK using `Android Studio version 4.1 or later <https://developer.android.com/studio/>`__.
31+
- You can install the Android SDK using `Android Studio Hedgehog (version 2023.1.1) or later <https://developer.android.com/studio/>`__.
3232

3333
- Run it once to complete the SDK setup using these `instructions <https://developer.android.com/studio/intro/update#sdk-manager>`__.
3434
- Ensure that the `required packages <https://developer.android.com/studio/intro/update#recommended>`__ are installed as well.
3535

36-
- Android SDK Platform-Tools version 30.0.5 or later
37-
- Android SDK Build-Tools version 33.0.2
38-
- Android SDK Platform 33
36+
- Android SDK Platform-Tools version 34.0.0 or later
37+
- Android SDK Build-Tools version 34.0.0
38+
- Android SDK Platform 34
3939
- Android SDK Command-line Tools (latest)
4040
- CMake version 3.10.2.4988404
4141
- NDK version r23c (23.2.8568313)
@@ -47,35 +47,14 @@ Download and install the Android SDK.
4747

4848
::
4949

50-
sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;33.0.2" "platforms;android-33" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;23.2.8568313"
50+
sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;34.0.0" "platforms;android-34" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;23.2.8568313"
5151

5252
.. note::
5353

5454
If you are using Linux,
5555
**do not use an Android SDK provided by your distribution's repositories as it will often be outdated**.
5656

5757

58-
Create a debug.keystore
59-
-----------------------
60-
61-
Android needs a debug keystore file to install to devices and distribute
62-
non-release APKs. If you have used the SDK before and have built
63-
projects, ant or eclipse probably generated one for you (in the ``~/.android`` directory on Linux and
64-
macOS, in the ``C:\Users\<user>\.android\`` directory on Windows).
65-
66-
If you can't find it or need to generate one, the keytool command from
67-
the JDK can be used for this purpose::
68-
69-
keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
70-
71-
This will create a ``debug.keystore`` file in your current directory. You should move it to a memorable location such as ``%USERPROFILE%\.android\``, because you will need its location in a later step. For more information on ``keytool`` usage, see `this Q&A article <https://ask.godotengine.org/21349/jdk-android-file-missing>`__.
72-
73-
.. note::
74-
75-
It is important that the password is the same for the keystore and the key. This is a `known Android
76-
studio issue <https://developer.android.com/studio/known-issues#ki-key-keystore-warning>`__ that also
77-
affects Godot projects.
78-
7958
Setting it up in Godot
8059
----------------------
8160

@@ -87,15 +66,14 @@ project).
8766

8867
Scroll down to the section where the Android settings are located:
8968

90-
.. image:: img/androidsdk.png
69+
.. image:: img/android_editor_settings.webp
9170

9271
In that screen, 2 paths need to be set:
9372

94-
- The ``Android Sdk Path`` should be the location where the Android SDK was installed.
95-
- For example ``%LOCALAPPDATA%\Android\Sdk\`` on Windows or ``/Users/$USER/Library/Android/sdk/`` on macOS.
73+
- ``Java SDK Path`` should be the location where OpenJDK 17 was installed.
9674

97-
- The debug ``.keystore`` file
98-
- It can be found in the folder where you put the ``debug.keystore`` file you created above.
75+
- ``Android Sdk Path`` should be the location where the Android SDK was installed.
76+
- For example ``%LOCALAPPDATA%\Android\Sdk\`` on Windows or ``/Users/$USER/Library/Android/sdk/`` on macOS.
9977

10078
Once that is configured, everything is ready to export to Android!
10179

15.9 KB
Loading
-15.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)