From 8bb2b02eda84bb2fefe01acab9ab0942d0d8c4ca Mon Sep 17 00:00:00 2001 From: AndyAnon14 <87996928+AndyAnon14@users.noreply.github.com> Date: Sun, 28 Aug 2022 14:53:39 -0700 Subject: [PATCH] Update compiling_for_android.rst (#6115) * Update compiling_for_android.rst * Apply suggestions from code review * Update compiling_for_android.rst Co-authored-by: Hugo Locurcio --- .../compiling/compiling_for_android.rst | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/development/compiling/compiling_for_android.rst b/development/compiling/compiling_for_android.rst index 2245ffaac..0ce721048 100644 --- a/development/compiling/compiling_for_android.rst +++ b/development/compiling/compiling_for_android.rst @@ -206,6 +206,50 @@ file in the ``bin\`` directory of your Godot source folder, so that the next time you build you will automatically have the custom templates referenced. +Building the Godot editor +------------------------- + +Compiling the editor is done by calling SCons from the Godot +root directory with the following arguments: + +:: + + scons platform=android android_arch=armv7 production=yes tools=yes target=release_debug + scons platform=android android_arch=arm64v8 production=yes tools=yes target=release_debug + scons platform=android android_arch=x86 production=yes tools=yes target=release_debug + scons platform=android android_arch=x86_64 production=yes tools=yes target=release_debug + cd platform/android/java + # On Windows + .\gradlew generateGodotEditor + # On Linux and macOS + ./gradlew generateGodotEditor + + +The resulting APK will be located at ``bin/android_editor.apk``. + +Removing the Editor templates +----------------------------- + +You can use the following commands to remove the generated editor templates: + +:: + + cd platform/android/java + # On Windows + .\gradlew cleanGodotEditor + # On Linux and macOS + ./gradlew cleanGodotEditor + +Installing the Godot editor +--------------------------- + +With an Android device with Developer Options enabled, connect the Android device to your computer via its charging cable to a USB/USB-C port. +Open up a Terminal/Command Prompt and run the following commands from the root directory with the following arguments: + +:: + + adb install ./bin/android_editor.apk + Troubleshooting ---------------