Installing Android SDK from command line tools. default tip
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 25 Apr 2024 22:33:14 +0300
changeset 2593 f0ab046a080f
parent 2592 fa6f56666150
Installing Android SDK from command line tools.
android-devel.rst
--- a/android-devel.rst	Sun Apr 21 11:33:35 2024 +0300
+++ b/android-devel.rst	Thu Apr 25 22:33:14 2024 +0300
@@ -16,3 +16,31 @@
 https://www.google.com/design/spec/material-design/introduction.html
   Material design, components list and example.
 
+Installing Android SDK from command line tools
+==============================================
+
+Download "Command line tools only" in:
+
+https://developer.android.com/studio
+  Android Studio downloads
+
+Define env var ``ANDROID_HOME``, like::
+
+  ANDROID_HOME=c:\opt\android-sdk
+
+Place ``bin`` & ``lib`` dirs from the zip archive to (the difference is that the archive
+misses ``latest`` part)::
+
+  %ANDROID_HOME%\cmdline-tools\latest
+
+Run the ``sdkmanager.bat``::
+
+  sdkmanager.bat --list
+
+Install ``platform-tools``, containing ``adb`` & ``fastboot``::
+
+  sdkmanager.bat --install platform-tools
+
+Update ``PATH``, add ::
+
+  %ANDROID_HOME%\platform-tools