Android sdk home no platform sdks

Содержание
  1. How To Install Android SDK Tools On Windows
  2. Step 1 — Download SDK Tools
  3. Step 2 — Install Command Line Tools
  4. Step 3 — Install Platform Tools
  5. Step 4 — Configure Environment Variable
  6. Step 5 — Configure Commands
  7. Step 6 — Using the SDK Manager
  8. Step 7 — Using the Emulator and AVD Manager
  9. Summary
  10. SDK Platform Tools release notes
  11. Downloads
  12. Revisions
  13. 31.0.3 (August 2021)
  14. 31.0.2 (April 2021)
  15. 31.0.1 (March 2021)
  16. 31.0.0 (February 2021)
  17. 30.0.5 (November 2020)
  18. 30.0.4 (July 2020)
  19. 30.0.3 (June 2020)
  20. 30.0.2 (June 2020)
  21. 30.0.1 (May 2020)
  22. 30.0.0 (April 2020)
  23. 29.0.6 (February 2020)
  24. 29.0.5 (October 2019)
  25. 29.0.4 (September 2019)
  26. 29.0.3 (September 2019)
  27. 29.0.2 (July 2019)
  28. 29.0.1 (June 2019)
  29. 29.0.0 (June 2019)
  30. 28.0.2 (March 2019)
  31. 28.0.1 (September 2018)
  32. 28.0.0 (June 2018)
  33. 27.0.1 (December 2017)
  34. 27.0.0 (December 2017)
  35. 26.0.2 (October 2017)
  36. 26.0.1 (September 2017)
  37. 26.0.0 (June 2017)
  38. 25.0.5 (April 24, 2017)
  39. 25.0.4 (March 16, 2017)
  40. 25.0.3 (December 16, 2016)
  41. 25.0.2 (December 12, 2016)
  42. 25.0.1 (November 22, 2016)
  43. 25.0.0 (October 19, 2016)
  44. 24.0.4 (October 14, 2016)
  45. Download Android SDK Platform-Tools
  46. Terms and Conditions
  47. 1. Introduction
  48. 2. Accepting this License Agreement
  49. 3. SDK License from Google
  50. 4. Use of the SDK by You
  51. 5. Your Developer Credentials
  52. 6. Privacy and Information
  53. 7. Third Party Applications
  54. 8. Using Android APIs
  55. 9. Terminating this License Agreement
  56. 10. DISCLAIMER OF WARRANTIES
  57. 11. LIMITATION OF LIABILITY
  58. 12. Indemnification
  59. 13. Changes to the License Agreement
  60. 14. General Legal Terms
  61. Download Android SDK Platform-Tools
  62. Terms and Conditions
  63. 1. Introduction
  64. 2. Accepting this License Agreement
  65. 3. SDK License from Google
  66. 4. Use of the SDK by You
  67. 5. Your Developer Credentials
  68. 6. Privacy and Information
  69. 7. Third Party Applications
  70. 8. Using Android APIs
  71. 9. Terminating this License Agreement
  72. 10. DISCLAIMER OF WARRANTIES
  73. 11. LIMITATION OF LIABILITY
  74. 12. Indemnification
  75. 13. Changes to the License Agreement
  76. 14. General Legal Terms
  77. Download Android SDK Platform-Tools

How To Install Android SDK Tools On Windows

It provides all the steps required to install Android Platform Tools and SDK Manager on Windows 10 without using Android Studio.

In this tutorial, we will discuss all the steps required to install Android Platform Tools and SDK Manager on Windows 10. This tutorial provides the steps for Windows 10, though the steps should be the same on other versions of Windows.

This post is useful for the developers using Android Platform Tools and SDK manager without installing Android Studio for the use cases including hybrid app development using Ionic. It also assumes that a valid JAVA_HOME environment variable exists pointing to the installation directory of Java.

You can follow How To Install Java 8 On Windows 10, How To Install Java 11 On Windows, How To Install Java 15 On Windows, or How To Install OpenJDK 15 On Windows to install Java on Windows. In case you are interested in developing Android applications using Android Studio, you can also follow How To Install Android Studio On Windows.

Step 1 — Download SDK Tools

Open the download tab of Android Studio and scroll down to the Command line tools only section. This section shows various options to download the SDK tools as shown in Fig 1.

Click the first link having the download option for Windows as highlighted in Fig 1. It will ask to accept to terms and conditions as shown in Fig 2.

Go through the details, agree on the terms and conditions and click the Download Button to start the download.

Step 2 — Install Command Line Tools

In this step, we will install the Android Command Line Tools on Windows 10. Create the directory android-sdk at your preferred location and extract the content of the downloaded SDK Tools zip to this directory. Make sure that the extracted content is available within the android-sdk directory created by us as shown in Fig 3.

Step 3 — Install Platform Tools

In this step, we will install the Android Platform Tools on Windows 10. Follow the same steps similar to Android SDK Tools to install Android Platform Tools using the download link as shown in Fig 4, Fig 5, and Fig 6.

Step 4 — Configure Environment Variable

Right-click the My Computer or This PC on the desktop and click the Properties Option. Now click the Advanced system settings. It will show the System Properties dialog having Advanced Tab options as shown in Fig 7.

Click the Environment Variables Button and click the New Button in the first section. Set the Variable Name field to ANDROID_HOME and Variable Value to the android-sdk directory created by us in the previous step.

Similarly, also configure the environment variable ANDROID_SDK_ROOT to the android-sdk directory.

Also , make sure that the JAVA_HOME environment variable is set to the JDK installation directory. It must not end with the bin as we do with the system path variable.

Читайте также:  Поиск андроида по гуглу

Step 5 — Configure Commands

In previous steps, we have downloaded and extracted the Command Line Tools and Platform Tools to the android-sdk directory. Both the tools provide several command-line utilities which we need to run by going to the appropriate directory having the executable files.

We can make these commands available at the system level without going to these directories by adding the path to tools, tools\bin, and platform-tools to the system path as shown in Fig 9. Make sure that these executables do not break other commands having the same name before adding these paths to the PATH environment variable.

Now open the Command Prompt and check the ADB and SDK Manager versions as shown in Fig 10. You might be required to restart the system to apply the environment variables set by us.

We can see that the ADB command works well and shows the version details, but the sdkmanager shows an error — «error: could not determine sdk root. error: either specify it explicitly with —sdk_root= or move this package into its expected location: \cmdline-tools\latest\» since it expects the Command Line Tools in a version-specific directory. Now open the source.properties file from the cmdline-tools directory to check the version. It will show the version details as shown below.

Now move all the files to the directory cmdline-tools/3.0 as shown in Fig 10.

Also, update the system path as shown in Fig 11.

Now close and open the Command Prompt. Also, check the ADB and SDK Manager versions as shown in Fig 12.

Step 6 — Using the SDK Manager

List — We can list the installed and available packages and images using the list command as shown below.

Install Platform — Use the below-mentioned command to install the Android 10 (API level 30) using the SDK manager.

It will ask to accept the terms and conditions as shown in Fig 13. Enter y and hit Enter Key to accept the terms and conditions. This command creates the directory platforms within android-sdk and installs the package android-30 having all the required files to run the emulator for Android 10.

If we again check the installed packages, the list command shows the installed options as shown below.

Update SDK Manager — Update the SDK manager using the below-mentioned command.

Add System Image — We can add system images from available images shown by the list command using the SDK manager as shown below. We are adding the most recent default 64-bit system image.

Accept the License Agreement to complete the download.

There are several projects which need Google Play Services. We need system images specific to Google Play Services as shown below.

Accept the License Agreement to complete the download.

Install Emulator — We need to install the emulator before creating the AVD using SDK Manager.

Accept the License Agreement to complete the download.

Install Build Tools — Install the most recent build tool listed by the list command.

Step 7 — Using the Emulator and AVD Manager

Create Android Emulator — Create the emulator using the system image downloaded in the previous step as shown below. Replace with the actual name preferred by you.

The above commands ask a bunch of questions to configure the AVD if we choose the custom hardware profile option. We have excluded the details of these options from this tutorial since these configuration details depend on the actual needs. After completing all the configurations, it creates the AVD using the name provided by us while configuring it.

Similarly, we can also install the AVD of older versions as shown below.

List Android Emulators — Now go to the tools directory on the command line and check the installed platform as shown below.

Notes: Add Emulator to the system path as shown in Fig 14.

Close and re-open the Command Prompt to check the AVDs created by us in the previous steps.

It will list all the AVDs installed by us.

Run Emulator — We can run the emulator created by us as shown below.

The emulator will take some time to completely launch the AVD. The final results should look similar to Fig 15.

Delete Emulator — We can also delete an existing emulator as shown below.

Summary

This tutorial provided all the steps required to install Android Platform Tools and Android SDK Manager on Windows 10. It also provided the steps required to create and launch the AVDs using the Emulator.

Источник

SDK Platform Tools release notes

Android SDK Platform-Tools is a component for the Android SDK. It includes tools that interface with the Android platform, such as adb , fastboot , and systrace . These tools are required for Android app development. They’re also needed if you want to unlock your device bootloader and flash it with a new system image.

Читайте также:  Обход блокировок рунета для firefox андроид

Although some new features in these tools are available only for recent versions of Android, the tools are backward compatible, so you need only one version of the SDK Platform-Tools.

Downloads

If you’re an Android developer, you should get the latest SDK Platform-Tools from Android Studio’s SDK Manager or from the sdkmanager command-line tool. This ensures the tools are saved to the right place with the rest of your Android SDK tools and easily updated.

But if you want just these command-line tools, use the following links:

  • Download SDK Platform-Tools for Windows
  • Download SDK Platform-Tools for Mac
  • Download SDK Platform-Tools for Linux

Although these links do not change, they always point to the most recent version of the tools.

Revisions

31.0.3 (August 2021)

  • fastboot
    • Support flashing vbmeta_vendor.img for fastboot flashall / update.

31.0.2 (April 2021)

  • adb
    • Support forwarding to vsock on linux.
    • Fix bug in adb track-devices where devices over wireless debugging wouldn’t immediately receive updates.
    • Implement preliminary support for mDNS device discovery without a separately installed mDNS service. This is currently disabled by default, and can be enabled by setting the environment variable ADB_MDNS_OPENSCREEN to 1 when starting the adb server.
  • fastboot
    • Don’t fail when unable to get boot partition size.
    • Derive device locked state from property instead of parsing the kernel command line.

31.0.1 (March 2021)

  • adb
    • Reduce TCP keepalive interval.
    • Improve incremental installation performance.
  • fastboot
    • Add support for compressed snapshot merges.
    • Restore legacy A/B support.

31.0.0 (February 2021)

  • adb
    • Disable compression on pull by default.

30.0.5 (November 2020)

  • adb
    • Improve performance of adb push when pushing many files over a high-latency connection.
    • Improve adb push/pull performance on Windows.
    • Fix adb push —sync with multiple inputs.
    • Improve performance of incremental apk installation.
    • Improve error handling for incremental apk installation.

30.0.4 (July 2020)

  • adb
    • Fix fallback to non-incremental apk installation on pre-Android 11 devices.
    • Fix adb install-multi-package .
    • Fix some more crashes related to adb wireless pairing.
    • Improve some error messages.
  • fastboot
    • Improve console output on fastboot oem commands.
    • Fix fastboot flashall on older devices such as Nexus 7.

30.0.3 (June 2020)

  • adb
    • Fix installation of APKs signed with v4 signature scheme on pre-Android 11 devices.
    • Fix crash when authenticating without ADB_VENDOR_KEYS .
    • Fix crash when using adb -H .

30.0.2 (June 2020)

  • adb
    • Improve adb wireless pairing.
    • Fix hang in adb logcat when run before a device is connected.
    • Add adb transport-id to allow scripts to safely wait for a device to go away after root/unroot/reboot.

30.0.1 (May 2020)

  • adb
    • Disable adb mdns auto-connection by default. This can be reenabled with the ADB_MDNS_AUTO_CONNECT environment variable.
    • Improve performance of adb install-multi on Android 10 or newer devices.
    • Fix timeout when using adb root/unroot on a device connected over TCP.
    • Update support for wireless pairing.

30.0.0 (April 2020)

  • adb
    • Add initial support for wireless pairing.
    • Add support for incremental APK installation.
    • Implement client-side support for compression of adb when used with an Android 11 device.
    • Improve performance of adb push on high-latency connections.
    • Improve push/pull performance on Windows.

29.0.6 (February 2020)

  • adb
    • 64-bit size/time support for adb ls when used with an Android 11 device.
    • Support listening on ::1 on POSIX.
    • Client support for WinUSB devices that publish a WinUSB descriptor (required for Android 11) should no longer require a USB driver to be installed.
    • Fix hang when using adb install on something that isn’t actually a file.

29.0.5 (October 2019)

  • adb
    • Slight performance improvement on Linux when using many simultaneous connections.
    • Add —fastdeploy option to adb install , for incremental updates to APKs while developing.

29.0.4 (September 2019)

  • adb
    • Hotfix for native debugging timeout with LLDB (see issue #134613180). This also fixes a related bug in the Android Studio Profilers that causes an AdbCommandRejectedException , which you can see in the idea.log file.

29.0.3 (September 2019)

  • adb
    • adb forward —list works with multiple devices connected.
    • Fix devices going offline on Windows.
    • Improve adb install output and help text.
    • Restore previous behavior of adb connect without specifying port.

29.0.2 (July 2019)

  • adb
    • Fixes a Windows heap integrity crash.
  • fastboot
    • Adds support for partition layout of upcoming devices.

29.0.1 (June 2019)

  • adb
    • Hotfix for Windows crashes (https://issuetracker.google.com/134613180)

29.0.0 (June 2019)

  • adb
    • adb reconnect performs a USB reset on Linux.
    • On Linux, when connecting to a newer adb server, instead of killing the server and starting an older one, adb attempts to launch the newer version transparently.
    • adb root waits for the device to reconnect after disconnecting. Previously, adb root; adb wait-for-device could mistakenly return immediately if adb wait-for-device started before adb noticed that the device had disconnected.
  • fastboot
    • Disables an error message that occurred when fastboot attempted to open the touch bar or keyboard on macOS.

28.0.2 (March 2019)

  • adb
    • Fixes flakiness of adb shell port forwarding that leads to «Connection reset by peer» error message.
    • Fixes authentication via ADB_VENDOR_KEYS when reconnecting devices.
    • Fixes authentication—when the private key used for authentication does not match the public key—by calculating the public key from the private key, instead of assuming that they match.
  • fastboot
    • Adds support for dynamic partitions.
  • Updated Windows requirements
    • The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. If you see errors mentioning missing DLLs, you may need to manually fetch and install the runtime package.

28.0.1 (September 2018)

  • adb
    • Add support for reconnection of TCP connections. Upon disconnection, adb will attempt to reconnect for up to 60 seconds before abandoning a connection.
    • Fix Unicode console output on Windows. (Thanks to external contributor Spencer Low!)
    • Fix a file descriptor double-close that can occur, resulting in connections being closed when an adb connect happens simultaneously.
    • Fix adb forward —list when used with more than one device connected.
  • fastboot
    • Increase command timeout to 30 seconds, to better support some slow bootloader commands.

28.0.0 (June 2018)

  • adb:
    • Add support for checksum-less operation with devices running Android P, which improves throughput by up to 40%.
    • Sort output of adb devices by connection type and device serial.
    • Increase the socket listen backlog to allow for more simulataneous adb commands.
    • Improve error output for adb connect .
  • fastboot:
    • Improve output format, add a verbose output mode ( -v ).
    • Clean up help output.
    • Add product.img and odm.img to the list of partitions flashed by fastboot flashall .
    • Avoid bricking new devices when using a too-old version of fastboot by allowing factory image packages to require support for specific partitions.

27.0.1 (December 2017)

  • adb: fixes an assertion failure on MacOS that occurred when connecting devices using USB 3.0.
  • Fastboot: On Windows, adds support for wiping devices that use F2FS (Flash-Friendly File System).

27.0.0 (December 2017)

  • Re-fixes the macOS 10.13 fastboot bug first fixed in 26.0.1, but re-introduced in 26.0.2.

26.0.2 (October 2017)

  • Add fastboot support for Pixel 2 devices.

26.0.1 (September 2017)

  • Fixed fastboot problems on macOS 10.13 High Sierra (bug 64292422).

26.0.0 (June 2017)

  • Updated with the release of Android O final SDK (API level 26).

25.0.5 (April 24, 2017)

Fixed adb sideload of large updates on Windows, manifesting as «std::bad_alloc» (bug 37139736).

Fixed adb problems with some Windows firewalls, manifesting as «cannot open transport registration socketpair» (bug 37139725).

Both adb —version and fastboot —version now include the install path.

Changed adb to not resolve localhost to work around misconfigured VPN.

Changed adb to no longer reset USB devices on Linux, which could affect other attached USB devices.

25.0.4 (March 16, 2017)

  • Added experimental libusb support to Linux and Mac adb

To use the libusb backend, set the environment variable ADB_LIBUSB=true before launching a new adb server. The new adb host-features command will tell you whether or not you’re using libusb.

To restart adb with libusb and check that it worked, use adb kill-server; ADB_LIBUSB=1 adb start-server; adb host-features . The output should include «libusb».

In this release, the old non-libusb implementation remains the default.

fastboot doesn’t hang 2016 MacBook Pros anymore (bug 231129)

Fixed Systrace command line capture on Mac

25.0.3 (December 16, 2016)

  • Fixed fastboot bug causing Android Things devices to fail to flash

25.0.2 (December 12, 2016)

  • Updated with the Android N MR1 Stable release (API 25)

25.0.1 (November 22, 2016)

  • Updated with the release of Android N MR1 Developer Preview 2 release (API 25)

25.0.0 (October 19, 2016)

  • Updated with the release of Android N MR1 Developer Preview 1 release (API 25)

24.0.4 (October 14, 2016)

  • Updated to address issues in ADB and Mac OS Sierra

Download Android SDK Platform-Tools

Before downloading, you must agree to the following terms and conditions.

Terms and Conditions

1. Introduction

2. Accepting this License Agreement

3. SDK License from Google

4. Use of the SDK by You

5. Your Developer Credentials

6. Privacy and Information

7. Third Party Applications

8. Using Android APIs

9. Terminating this License Agreement

10. DISCLAIMER OF WARRANTIES

11. LIMITATION OF LIABILITY

12. Indemnification

13. Changes to the License Agreement

Download Android SDK Platform-Tools

Before downloading, you must agree to the following terms and conditions.

Terms and Conditions

1. Introduction

2. Accepting this License Agreement

3. SDK License from Google

4. Use of the SDK by You

5. Your Developer Credentials

6. Privacy and Information

7. Third Party Applications

8. Using Android APIs

9. Terminating this License Agreement

10. DISCLAIMER OF WARRANTIES

11. LIMITATION OF LIABILITY

12. Indemnification

13. Changes to the License Agreement

Download Android SDK Platform-Tools

Before downloading, you must agree to the following terms and conditions.

Источник

Читайте также:  Clear all memory android
Оцените статью