Sdkmanager -uninstall -package_file= package_file To uninstall, simply add the -uninstall flag: The package_file argument is the location of a text file in whichĮach line is an SDK-style path of a package to install (without quotes). ANDROID STUDIO INSTALL SYSTEM IMAGE HOW TOPaths, separated with a space, but they must each be wrapped in their own set ofįor example, here's how to install the latest platform tools (which includesĪdb and fastboot) and the SDK tools for API level 28: sdkmanager "platform-tools" "platforms android-28"Īlternatively, you can pass a text file that specifies all packages: The -list command, wrapped in quotes (for example, The packages argument is an SDK-style path as shown with Note: To list only stable packages, use -channel=0 or remove the -channel For example, specify the canary channel to list packagesįrom all channels. Use the channel option to include a package from a channel up to and Channels: 0 (stable), 1 (beta), 2 (dev), or 3 (canary) You can use the sdkmanager to perform the following tasks. Note: For local usage, you can use the latest packages,īut for scripts, choose a specific version instead to ensure Substitute version with the version you want to install, for The following command: android_sdk/cmdline-tools/latest/bin/sdkmanager -install "cmdline-tools version" (Optional) To install a previous version of the command-line tools, run NOTICE.txt file, and source.properties file, into the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |