Accept Android Licenses: sdkmanager -licenses 11. 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" Verify that your installation is properly configured by writing and running a small Hello, World. Edit the following file: sudo nano ~/.bashrcĥ.1 Add to the end of the. Install Android Studio (Latest) with Gradle 7.0.2 To check if its already installed, look for the program file: Android Studio. Set the path of Android SDK directory in the Ubuntu environment variables. 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. It’s necessary to locate all ANDROID SDK subdirectories. Refer to the system requirements to determine the supported. Create a sub-directory, into DevTools, called Android: To install the Android SDK, go to the Android developers website and download Android Studio. 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. |