How To Setup Android SDK Without Android Studio
How To Setup Android SDK Without Android Studio
The foundation of android mobile development using any library is the “Android
SDK”. Android SDK is the prerequisite for building android apps, be it via native
Kotlin, or other popular libraries like React Native and Flutter.
Prerequisites
For this guide I assume you’ve already installed the Java JDK of your choice. I’d
suggest installing openjdk8, as it is prime choice for Android development, You can
install it via commands below.
Yes, Download, instead of directly installing them, I know this is a drag but just bear
with me.
Click on this link to visit the download page, then to the Command Line Tools Only
section, and Download the zip file according to you operating system (preferably
Linux OR Mac, If you are using windows, switch your OS).
Now after you’ve downloaded the zip file, move it to your home location i.e.
Now there’s another way to do this in one step, you can just copy the link to the zip
file, then open a terminal window and
For Windows:
Extract the contents to C:\Android\sdk
Update everything
sdkmanager --update
For those using the latest distribution on windows, the following should be enough:
sdkmanager --list
sdkmanager.bat system-images;android-29;default;x86_64
platforms;android-29 build-tools;29.0.3
extras;google;m2repository extras;android;m2repository
(2) After download and installation, the Android SDK can typically be found at C:\
Users\User\AppData\Local\Android\Sdk\ . You will have to add several sub-
folders to your environment PATH variable.
(3) Launch Command Prompt and add these directories to your
environment PATH variable with the following commands:
(4) Install the latest SDK tools and system image for API level 28:
>sdkmanager
"extras;intel;Hardware_Accelerated_Execution_Manager"
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:
+IgnoreUnrecognizedVMOptions'
@rem Add default JVM options here. You can also use JAVA_OPTS
and SDKMANAGER_OPTS to pass JVM options to this script.
set JAVA_HOME="C:\ProgramData\scoop\apps\android-studio\current\
jre"
set DEFAULT_JVM_OPTS="-Dcom.android.sdklib.toolsdir=%~dp0\.."
To specify a graphics acceleration type when you run an AVD from the command
line, include the -gpu option, as shown in the following example:
Configuring VM acceleration