bashrc file : export ANDROID_HOME=/home//android-sdkĮxport PATH=$:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/platform-tools In order to edit the ~/.bashrc simply can be editable in vim mode $ vim. Add below line either in ~/.bashrc or ~/.profile file to make it permanent. You can easily point out that build-tools and cmdline-tools are siblings, all resides inside the parent ANDROID_HOME.Īdd SDK tools directory in PATH environment variable to make executable available globally. The final, complete ANDROID_HOME directory structure should look like below, consist of quite a few sub-directories:īuild-tools, cmdline-tools, emulator, licenses, patcher, platform-tools, platforms, tools. Because later, when updating Android SDK, or installing more packages, the other packages will be placed under ANDROID_HOME, but not under cmdline-tools. , you'd better set in PATH environment variable.īut cmdline-tools should not be set as ANDROID_HOME. Well the folks who are trying to download either on *ix or Ec2 machine would suggest to clean approach in below steps: $ mkdir android-sdk Install applications and test as you wish.After that boot the newly created virtual device.To do this click on the Tools tab in SDK manager and select manage AVDs, then in the following window click Create you'll see a similar screen as below: Note: I recommend downloading x86 images as they're much faster tham arm counterparts, also get intel HAXM (hardware accelerated execution manager) driver to significantly increase your emulator speedĪll set, now you just need to create and configure an Android virtual device matching your target Android version and tweak desired settings. The SDK manager window will appear, now you need to update/download other sdk packages (i.e platform-tools, system-images, platforms etc according to API levels).When done leave the option to download system images "checked":.After downloading the package, begin installation (and choose the desired installation folder to proceed or just leave the default %USERPROFILE%\android-sdk):.Depending on your choice download the appropriate SDK package from above links (but for this example I will be using the manual method).I recommed using the offline SDK installer for installing the essential tools namely SDK and AVD manager: The last version of he installer is found here: SDK Installer_r24.4.1 (for windows), SDK Installer_r24.4.1 (for linux) or SDK Installer_r24.4.1 (for macos) A good internet connection (needed for downloading system images etc).Java runtime environment (or JDK) at Oracle website (and download the correct version (32- or 64-bit) for your computer).There are just a couple of prerequisites to note: This tutorial is a just step by step for installing Android SDK (Software Development Kit) assuming the user is starting from scratch. If needed, also set ANDROID_HOME environment variable like: export ANDROID_HOME=/path/to/android-sdk If you check the android-sdk folder after running tools/bin/sdkmanager -update it will be like: +- android-sdk The sdkmanager accepts the following flag: -sdk_root=: Use the specified SDK root instead of the SDKīut if we omit this flag, it assumes parent directory of tools directory as the sdk root, here in our case android-sdk directory. To get the SDK packages we could run: tools/bin/sdkmanager -update This extracts content to a single directory named tools, like: +- android-sdk Sdk-tools-linux-*.zip only includes the command-line tools. Tools/bin/sdkmanager "platform-tools" "platforms android–27" "build-tools 27.0.3" You can also use the sdkmanager to list and to install any specific packages needed. When executing the above commands, make sure that you replace * with an appropriate version number which you could find in the download page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |