Jelajahi Sumber

Merge pull request #87 from brainrom/patch-1

More info about installation via sdkmanager
Bjorn 3 tahun lalu
induk
melakukan
431542e5d4
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      guides/Compiling.md

+ 8 - 0
guides/Compiling.md

@@ -99,6 +99,14 @@ The Android command line tools can be found on the Android website or installed
 manager.  The command line tools contain a tool named `sdkmanager` that can be used to install
 various versions of Android, the Android build tools, and the NDK.
 
+Installation via `sdkmanager` command line tool:
+
+    $ cmdline-tools/bin/sdkmanager --sdk_root=/path/to/Android/Sdk "build-tools;30.0.3" "cmake;3.22.1" "ndk;21.4.7075529" "platform-tools" "platforms;android-26
+
+To reduce the SDK size, `emulator` package can be safely uninstalled:
+
+    $ cmdline-tools/bin/sdkmanager --sdk_root=/path/to/Android/Sdk --uninstall emulator
+
 Android Studio isn't required, but can be used to install the SDK, NDK, and Java as well.
 
 Note where the SDK is installed.  Some paths in the SDK will need to be specified.