![]() Install default system image for platform android-29 We are adding the most recent default 64-bit system image. Platforms android-30 | 3 | Android SDK Platform 30 | platforms/android-30/Īfter installing the platforms, the directory structure should be:Īdd System Image - We can add system image from available images shown by the list command using the SDK manager as shown below. If we again check the installed packages, the list command shows the installed options as shown below. This command creates the directories licenses and platforms within android-sdk and installs the package android-30 within the platforms directory having all the required files to run the emulator for Android 11. Enter y and hit Enter Key to accept the terms and conditions. ![]() ![]() It will ask to accept the terms and conditions. # Start downloading the most recent package Install Platform - Use the below-mentioned command to install the Android 10 (API level 29) using the SDK manager. We can see that it shows the platform-tools installed by us Platform-tools | 31.0.2 | Android SDK Platform-Tools 31.0.2 | platform-tools/ Installed packages:=] 100% Computing updates. List all the installed and available platforms, system images and other resources List - We can list the installed and available packages and images using the list command as shown below. Update SDK Manager - Update the SDK manager using the below-mentioned command. # Output - It must shown installed sdkmanager version Installed as /data/installations/android-sdk/platform-tools/adb # Output - It must show the installed adb version Now test the Android SDK installed by us using the environment variables configured by us. Now press Ctrl + O and press Enter to write our change. Make sure that you provide the correct path to the android-sdk directory. # sdkmanager fix for java 9 and 10 #export JAVA_OPTS= '-XX:+IgnoreUnrecognizedVMOptions -add-modules .ee' # Android SDK Tools and Platform Tools export ANDROID_HOME =/data/installations/android-sdkĮxport PATH = $PATH : $ANDROID_HOME/cmdline-tools/tools/binĮxport PATH = $PATH : $ANDROID_HOME/platform-tools PATH = $PATH : $HOME/bin : $JAVA_HOME/bin Scroll down by pressing the Page Down button and add at the end of this file: Notes: Replace the android sdk path based on your installation directory. # Android - SDK Tools & Platform Tools export ANDROID_HOME =/data/installations/android-sdkĮxport PATH =/data/installations/android-sdk/platform-tools :/data/installations/android-sdk/ cmdline-tools/tools :/data/installations/android-sdk/ cmdline-tools /tools /bin:$ Another approach is to update /etc/profile file which works for all the accounts. In the first approach, we can update the. In this step, we will configure the environment variable to use the SDK tools installed by us. ![]() The directory structure should be similar to: Make sure that the platform-tools content is available within the directory platform-tools. This section shows various options to download the SDK tools as shown in Fig 1. Open the download tab of Android Studio and scroll down to the Command line tools only section. You can continue this tutorial for Ubuntu 20.04 LTS. Notes: The Ubuntu 18.04 LTS version of this tutorial is available at - How To Install Android SDK Tools On Ubuntu 18.04. You may also be required to execute the below-mentioned command in case you have set the options previously for Java 9 or Java 10. In case you are interested in developing Android applications using Android Studio, you can also follow the other tutorials written by us including How To Install Android SDK Tools On Windows, How To Install Android Studio On Windows, and How To Install Android Studio On Ubuntu 20.04. You may follow the Java installation tutorials written by us including How To Install Java 8 On Ubuntu, How To Install Java 16 On Ubuntu 20.04 LTS, and How To Install OpenJDK 16 On Ubuntu 20.04 LTS. It also assumes that a valid JAVA_HOME environment variable exists pointing to the installation directory of Java. This post is useful for the developers using Android SDK Tools with other IDEs without installing Android Studio for the use cases including hybrid app development using Ionic. This tutorial provides the steps to install Android SDK Tools on Ubuntu 20.04 LTS, though the steps should be the same for other versions of Ubuntu and Linux systems. In this tutorial, we will discuss all the steps required to install Android SDK Tools, SDK Manager, and AVD Manager on the popular Linux distribution i.e. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |