Răsfoiți Sursa

Update Android compiling documentation

Updates the `compiling for Android` documentation to reflect the build changes added by [PR #32269](https://github.com/godotengine/godot/pull/32269).
Fredia Huya-Kouadio 5 ani în urmă
părinte
comite
60388114d6
1 a modificat fișierele cu 20 adăugiri și 6 ștergeri
  1. 20 6
      development/compiling/compiling_for_android.rst

+ 20 - 6
development/compiling/compiling_for_android.rst

@@ -91,9 +91,9 @@ the following arguments:
     scons platform=android target=release android_arch=arm64v8
     cd platform/android/java
     # On Windows
-    .\gradlew build
+    .\gradlew generateGodotTemplates
     # On Linux and macOS
-    ./gradlew build
+    ./gradlew generateGodotTemplates
 
 
 The resulting APK will be located at ``bin/android_release.apk``.
@@ -106,9 +106,9 @@ The resulting APK will be located at ``bin/android_release.apk``.
     scons platform=android target=release_debug android_arch=arm64v8
     cd platform/android/java
     # On Windows
-    .\gradlew build
+    .\gradlew generateGodotTemplates
     # On Linux and macOS
-    ./gradlew build
+    ./gradlew generateGodotTemplates
 
 
 The resulting APK will be located at ``bin/android_debug.apk``.
@@ -127,9 +127,9 @@ with Gradle. For example, for the release template:
     scons platform=android target=release android_arch=x86
     cd platform/android/java
     # On Windows
-    .\gradlew build
+    .\gradlew generateGodotTemplates
     # On Linux and macOS
-    ./gradlew build
+    ./gradlew generateGodotTemplates
 
 
 This will create a fat binary that works on all platforms.
@@ -137,6 +137,20 @@ The final APK size of exported projects will depend on the platforms you choose
 to support when exporting; in other words, unused platforms will be removed from
 the APK.
 
+Cleaning the generated export templates
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+You can use the following commands to remove the generated export templates:
+
+::
+
+    cd platform/android/java
+    # On Windows
+    .\gradlew cleanGodotTemplates
+    # On Linux and macOS
+    ./gradlew cleanGodotTemplates
+
+
 Using the export templates
 --------------------------