You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting templates will be located under the ``bin`` directory:
108
101
109
102
- ``bin/android_release.apk`` for the release template
110
103
- ``bin/android_debug.apk`` for the debug template
111
-
- ``bin/android_dev.apk`` for the dev template
112
104
- ``bin/android_source.zip`` for the Gradle build template
113
105
114
106
.. note::
115
107
116
108
- If you are changing the list of architectures you're building, remember to add ``generate_android_binaries=yes`` to the *last* architecture you're building, so that the template files are generated after the build.
117
109
110
+
- To enable dev build (for use when troubleshooting) in the generated templates, add the ``dev_build=yes`` parameters to the SCons command.
111
+
118
112
- To include debug symbols in the generated templates, add the ``debug_symbols=yes`` parameters to the SCons command.
119
113
120
114
- Note that you can include ``separate_debug_symbols=yes`` to generate the debug symbols in a separate ``*-native-debug-symbols.zip`` file.
Copy file name to clipboardExpand all lines: engine_details/development/configuring_an_ide/android_studio.rst
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,43 +28,46 @@ Android Studio project layout
28
28
29
29
The project is organized using `Android Studio's modules <https://developer.android.com/studio/projects#ApplicationModules>`_:
30
30
31
-
- ``lib`` module:
32
-
- Located under ``<Godot root directory>/platform/android/java/lib``, this is a **library module** that organizes
33
-
the Godot java and native code and make it available as a reusable dependency / artifact.
34
-
- The artifact generated by this module is made available for other Android modules / projects to use as a dependency, via `MavenCentral <https://repo1.maven.org/maven2/org/godotengine/godot/>`_.
31
+
- **lib** module:
35
32
36
-
- ``editor`` module:
37
-
- Located under ``<Godot root directory>/platform/android/java/editor``, this is an **application module** that holds
38
-
the source code for the Android port of the Godot Editor.
39
-
- This module has a dependency on the ``lib`` module.
33
+
- Located under ``<Godot root directory>/platform/android/java/lib``, this is a **library module** that organizes the Godot java and native code and make it available as a reusable `Android library <https://developer.android.com/studio/projects/android-library>`_.
34
+
- The generated :ref:`Godot Android library <doc_android_library>` is made available for other Android modules / projects via `MavenCentral <https://central.sonatype.com/artifact/org.godotengine/godot>`_, along with `its documentation <https://javadoc.io/doc/org.godotengine/godot/latest/index.html>`_.
40
35
41
-
- ``app`` module:
42
-
- Located under ``<Godot root directory>/platform/android/java/app``, this is an **application module** that holds
43
-
the source code for the Android build templates.
44
-
- This module has a dependency on the ``lib`` module.
36
+
- **editor** module:
37
+
38
+
- Located under ``<Godot root directory>/platform/android/java/editor``, this is an **application module** that holds the source code for the `Android and XR ports <https://godotengine.org/download/android/>`_ of the Godot Editor.
39
+
- This module has a dependency on the **lib** module.
40
+
41
+
- **app** module:
42
+
43
+
- Located under ``<Godot root directory>/platform/android/java/app``, this is an **application module** that holds the source code for the Android build templates.
44
+
- This module has a dependency on the **lib** module.
45
45
46
46
Building & debugging the editor module
47
47
--------------------------------------
48
48
49
49
- To build the ``editor`` module:
50
+
50
51
- Select the `Run/Debug Configurations drop down <https://developer.android.com/studio/run/rundebugconfig#running>`_ and select ``editor``.
- Select **Run > Run 'editor'** from the top menu or `click the Run icon <https://developer.android.com/studio/run/rundebugconfig#running>`_.
58
+
57
59
- To debug the ``editor`` module:
60
+
58
61
- Open the **Build Variants** window using **View > Tools Windows > Build Variants** from the top menu.
59
-
- In the **Build Variants** window, make sure that in the **Active Build Variant** column, the ``:editor`` entry is set to one of the **Dev** variants.
62
+
- In the **Build Variants** window, make sure that in the **Active Build Variant** column, the ``:editor`` entry is set to one of the **Debug** variants.
- Open the **Run/Debug Configurations** window by clicking on **Run > Edit Configurations...** on the top menu.
66
69
- In the **Run/Debug Configurations** window, select the ``editor`` entry, and under **Debugger** make sure the **Debug Type** is set to ``Dual (Java + Native)``
67
-
- Click the ``+`` sign under the **Symbol Directories** section, and add the ``lib`` module directory: ``platform/android/java/lib``
70
+
- Click the ``+`` sign under the **Symbol Directories** section, and add the ``platform/android/java/lib/libs/tools/debug`` directory.
- Open the **Run/Debug Configurations** window by clicking on **Run > Edit Configurations...** on the top menu.
100
106
- In the **Run/Debug Configurations** window, select the ``app`` entry, and under **Debugger** make sure the **Debug Type** is set to ``Dual (Java + Native)``
101
-
- Click the ``+`` sign under the **Symbol Directories** section, and add the ``lib`` module directory: ``platform/android/java/lib``
107
+
- Click the ``+`` sign under the **Symbol Directories** section, and add the ``platform/android/java/lib/libs/debug`` directory.
0 commit comments