Skip to content

Commit 8cfed8c

Browse files
authored
Merge pull request #11537 from syntaxerror247/update-compiling-doc
Update compiling_for_android.rst
2 parents 540b9b9 + d1e8545 commit 8cfed8c

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

engine_details/development/compiling/compiling_for_android.rst

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ For compiling under Windows, Linux or macOS, the following is required:
2828

2929
- `Python 3.8+ <https://www.python.org/downloads/>`_.
3030
- `SCons 4.0+ <https://scons.org/pages/download.html>`_ build system.
31-
- `Android SDK <https://developer.android.com/studio/#command-tools>`_
32-
(command-line tools are sufficient).
31+
- Android SDK
3332

34-
- Required SDK components will be automatically installed.
33+
- To install the Android SDK, follow the steps here <https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html>_.
3534
- On Linux, **do not use an Android SDK provided by your distribution's repositories** as it will often be outdated.
3635
- On macOS, **do not use an Android SDK provided by Homebrew** as it will not be installed in a unified location.
3736

3837
- Gradle (will be downloaded and installed automatically if missing).
3938
- JDK 17 (either OpenJDK or Oracle JDK).
4039

41-
- You can download a build from `Adoptium <https://adoptium.net/temurin/releases/?variant=openjdk17>`_.
40+
- You can download a build from `Adoptium <https://adoptium.net/temurin/releases?variant=openjdk17&version=17&os=any&arch=any>`_.
4241

4342
.. seealso:: To get the Godot source code for compiling, see
4443
:ref:`doc_getting_source`.
@@ -63,21 +62,6 @@ Setting up the buildsystem
6362
to your ``.bashrc`` or ``.zshrc`` where ``/path/to/android-sdk`` points to
6463
the root of the SDK directories.
6564

66-
- Install the necessary SDK components in this folder:
67-
68-
- Accept the SDK component licenses by running the following command
69-
where ``android_sdk_path`` is the path to the Android SDK, then answering all the prompts with ``y``:
70-
71-
::
72-
73-
cmdline-tools/latest/bin/sdkmanager --sdk_root=<android_sdk_path> --licenses
74-
75-
- Complete setup by running the following command where ``android_sdk_path`` is the path to the Android SDK.
76-
77-
::
78-
79-
cmdline-tools/latest/bin/sdkmanager --sdk_root=<android_sdk_path> "platform-tools" "build-tools;35.0.1" "platforms;android-35" "cmdline-tools;latest" "cmake;3.10.2.4988404" "ndk;28.1.13356709"
80-
8165
- After setting up the SDK and environment variables, be sure to
8266
**restart your terminal** to apply the changes. If you are using
8367
an IDE with an integrated terminal, you need to restart the IDE.
@@ -230,7 +214,7 @@ root directory with the following arguments:
230214

231215
- You can add the ``debug_symbols=yes`` parameters to include the debug symbols in the generated build.
232216

233-
- Note that you can include ``separate_debug_symbols=yes`` to generate the debug symbols in a separate ``*-native-debug-symbols.zip`` file.
217+
- Note that you can include ``separate_debug_symbols=yes`` to the *last* architecture you're building, to generate the debug symbols in a separate ``*-native-debug-symbols.zip`` file.
234218

235219
- You can skip certain architectures depending on your target device to speed up compilation.
236220

@@ -259,7 +243,7 @@ Open up a Terminal/Command Prompt and run the following commands from the root d
259243

260244
::
261245

262-
adb install ./bin/android_editor_builds/android_editor-release.apk
246+
adb install ./bin/android_editor_builds/android_editor-android-debug.apk
263247

264248
Troubleshooting
265249
---------------

0 commit comments

Comments
 (0)