Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tutorials/platform/android/android_library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,13 @@ Below we break-down the steps used to create the GLTF Viewer app.

Note that it's also possible to create the Godot project in a separate directory and export it as a `PCK or ZIP file <https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html#pck-versus-zip-pack-file-formats>`_
to the Android app's ``assets`` directory.
Using this approach requires passing the ``--main-pack <pck_or_zip_filepath_relative_to_assets_dir>`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() <https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/platform/android/java/lib/src/org/godotengine/godot/GodotHost.java#L45>`_.
Using this approach requires passing the ``--main-pack res://<pck_or_zip_filepath_relative_to_assets_dir>`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() <https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/platform/android/java/lib/src/org/godotengine/godot/GodotHost.java#L45>`_.
Copy link
Member

@syntaxerror247 syntaxerror247 Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to specify res:// in --main-pack res://<pck_or_zip_filepath_relative_to_assets_dir>. Example should be enough.


.. code-block:: kotlin

override fun getCommandLine(): MutableList<String> {
return mutableListOf("--main-pack", "res://game.pck");
}

The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.

Expand Down