mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
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 <hugo.locurcio@hugo.pro>
This commit is contained in:
co-authored by
Hugo Locurcio
parent
c2f7474ec5
commit
8bb2b02eda
@@ -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
|
||||
---------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user