osetwisted.blogg.se

Download sdk platform tools
Download sdk platform tools













The Android Studio configuration variables contain settings that customize the location ofĬonfiguration files and the JDK. See Update yourĪndroid Studio configuration environment variables Note: You can use Android Studio instead of sdkmanager To download packages for an operating system different from the current machine. Set this variable to windows, macosx, or linux when To override the user preferences location for those older tools, setĪNDROID_SDK_HOME to the parent directory you would like the Some older tools, such as Android Studio 4.3 and earlier, do not read Sets the path to the user preferences directory for tools that are part of the Android SDK. If you continue to use it, Android Studio and the Android Gradle plugin willĬheck that the old and new variables are consistent. The value does not typically change and can be shared by multiple users on the same machine.ĪNDROID_SDK_ROOT, which also points to the SDK installation directory, Sets the path to the SDK installation directory. Environment variables Android SDK environment variables The following table describes commonly used environment variables for the Android SDK tools. Setenv PATH $PATH\:$ANDROID_HOME/tools\:$ANDROID_HOME/tools/bin\:$ANDROID_HOME/platform-tools Setenv ANDROID_HOME ~/Library/Android/sdk You can also update the PATH environment variable to include the tool locations.Įxport ANDROID_HOME ~/Library/Android/sdkĮxport PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools The documentation for the shell that you're using to be sure. The location of the shell initialization script depends on the shell being used.įor Gnu Bash, the location can be ~/.bash_profile. These commands can be added to the shell initialization script to set the variables each time a Zsh, variables are set using the following To determine which shell type is running, type the following: MacOS and Linux: The precise method of setting environment variables depends on Check the documentation for your version of Windows Windows: In a terminal window, type the following:Īlternately, add it through the Windows UI. On macOS and Linux, each time a new shell starts, variable Variable settings in terminal windows last

download sdk platform tools

The following examples show how to set environment variables in a terminal window and inĪ shell script for different operating systems. Search path environment variable to includeĪNDROID_HOME/tools, ANDROID_HOME/tools/bin, and To run tools from the command line without including the full path to the executable, One of the most useful environment variables to set isĭetermine the Android SDK installation directory. You can configure the behavior of Android Studio and the command-line tools by settingĮnvironment variables.















Download sdk platform tools