When the extract is complete, move the folder that was previously in. Extract the tar.gz file using tar -xf filename command: tar -xf android-studio-2021.2.1. Accept Android Licenses: sdkmanager -licenses 11. If the download file is located in the Home > Downloads folder, use the following command to enter the download folder. Install Build Tools for Android 29: sdkmanager "build-tools" "build-tools 29.0.3" 10. Install Platform for Android 29: sdkmanager "platform-tools" "platforms android-29" 9. Listing all packages available: sdkmanager -list 8. Testing sdkmanager: sdkmanager -version 7. TIP: To install and set up JDK (required), read this story.ĥ.2 Reset PATH: source ~/.bashrc 6. bashrc file: DEV_TOOLS="/home/$USER/DevTools" JAVA_HOME="$DEV_TOOLS/JDK/jdk-11.0.7+10" ANDROID_HOME="$DEV_TOOLS/Android" export JAVA_HOME export ANDROID_HOME PATH="$JAVA_HOME/bin:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/platform-tools:$PATH" Edit the following file: sudo nano ~/.bashrcĥ.1 Add to the end of the. Then, click on download Android Studio as shown. Set the path of Android SDK directory in the Ubuntu environment variables. Firstly, to download Android Studio click on the link given below, This will direct you to the official website of Android Studio. Since commandlinetools is just an Android tool, as well as the others that will be on the side.ģ.2 Check for the tools was moved successful: ls -l ~/DevTools/Android/cmdline-tools/tools 5. Next to it will be the other sub-directories of the Android SDK. Extract the “commandlinetools-linux- ***.zip” file into a specific directory: cmdline-tools: unzip commandlinetools-linux-6200805_latest.zipģ.1 Move tools directory into the cmdline-tools directory: mv tools ~/DevTools/Android/cmdline-tools/ sudo mkdir ~/DevTools/AndroidĢ.1 Create another sub-directory, into Android, called cmdline-tools: sudo mkdir ~/DevTools/Android/cmdline-tools 3. To get the exact path of the system-image, try to download from android studio first, after 1 download, stop the download and go to your sdk path. It’s necessary to locate all ANDROID SDK subdirectories. Create a sub-directory, into DevTools, called Android: TIP: Use that directory to install any others development tools, software development kits et all. Create a Development Tools directory in your home directory, called DevTools (or use an appropriate name): sudo mkdir ~/DevTools Visual Studio Code is highly recommended to use with Android Command Tools.ġ.1 Check for the correct “commandlinetools ***” file download: ls -l ~/Downloads 2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |