Android sdk get android version

Содержание
  1. SDK Manager
  2. Recommended Packages
  3. Adding New Sites
  4. Troubleshooting
  5. Download
  6. Terms and Conditions
  7. 1. Introduction
  8. 2. Accepting this License Agreement
  9. 3. SDK License from Google
  10. 4. Use of the SDK by You
  11. 5. Your Developer Credentials
  12. 6. Privacy and Information
  13. 7. Third Party Applications
  14. 8. Using Android APIs
  15. 9. Terminating this License Agreement
  16. 10. DISCLAIMER OF WARRANTIES
  17. 11. LIMITATION OF LIABILITY
  18. 12. Indemnification
  19. 13. Changes to the License Agreement
  20. 14. General Legal Terms
  21. Android Studio
  22. Intelligent code editor
  23. Code templates and GitHub integration
  24. Multi-screen app development
  25. Virtual devices for all shapes and sizes
  26. Android builds evolved, with Gradle
  27. More about Android Studio
  28. System Requirements
  29. Windows
  30. Mac OS X
  31. Linux
  32. SDK Platform Tools release notes
  33. Downloads
  34. Revisions
  35. 31.0.3 (August 2021)
  36. 31.0.2 (April 2021)
  37. 31.0.1 (March 2021)
  38. 31.0.0 (February 2021)
  39. 30.0.5 (November 2020)
  40. 30.0.4 (July 2020)
  41. 30.0.3 (June 2020)
  42. 30.0.2 (June 2020)
  43. 30.0.1 (May 2020)
  44. 30.0.0 (April 2020)
  45. 29.0.6 (February 2020)
  46. 29.0.5 (October 2019)
  47. 29.0.4 (September 2019)
  48. 29.0.3 (September 2019)
  49. 29.0.2 (July 2019)
  50. 29.0.1 (June 2019)
  51. 29.0.0 (June 2019)
  52. 28.0.2 (March 2019)
  53. 28.0.1 (September 2018)
  54. 28.0.0 (June 2018)
  55. 27.0.1 (December 2017)
  56. 27.0.0 (December 2017)
  57. 26.0.2 (October 2017)
  58. 26.0.1 (September 2017)
  59. 26.0.0 (June 2017)
  60. 25.0.5 (April 24, 2017)
  61. 25.0.4 (March 16, 2017)
  62. 25.0.3 (December 16, 2016)
  63. 25.0.2 (December 12, 2016)
  64. 25.0.1 (November 22, 2016)
  65. 25.0.0 (October 19, 2016)
  66. 24.0.4 (October 14, 2016)
  67. Download Android SDK Platform-Tools
  68. Terms and Conditions
  69. 1. Introduction
  70. 2. Accepting this License Agreement
  71. 3. SDK License from Google
  72. 4. Use of the SDK by You
  73. 5. Your Developer Credentials
  74. 6. Privacy and Information
  75. 7. Third Party Applications
  76. 8. Using Android APIs
  77. 9. Terminating this License Agreement
  78. 10. DISCLAIMER OF WARRANTIES
  79. 11. LIMITATION OF LIABILITY
  80. 12. Indemnification
  81. 13. Changes to the License Agreement
  82. 14. General Legal Terms
  83. Download Android SDK Platform-Tools
  84. Terms and Conditions
  85. 1. Introduction
  86. 2. Accepting this License Agreement
  87. 3. SDK License from Google
  88. 4. Use of the SDK by You
  89. 5. Your Developer Credentials
  90. 6. Privacy and Information
  91. 7. Third Party Applications
  92. 8. Using Android APIs
  93. 9. Terminating this License Agreement
  94. 10. DISCLAIMER OF WARRANTIES
  95. 11. LIMITATION OF LIABILITY
  96. 12. Indemnification
  97. 13. Changes to the License Agreement
  98. 14. General Legal Terms
  99. Download Android SDK Platform-Tools

SDK Manager

The Android SDK separates tools, platforms, and other components into packages you can download using the SDK Manager. For example, when the SDK Tools are updated or a new version of the Android platform is released, you can use the SDK Manager to quickly download them to your environment.

You can launch the SDK Manager in one of the following ways:

  • From Eclipse (with ADT), select Window >Android SDK Manager.
  • From Android Studio, select Tools >Android >SDK Manager.
  • On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory.
  • On Mac or Linux, open a terminal and navigate to the tools/ directory in the location where the Android SDK is installed, then execute android sdk .

You can select which packages you want to download by toggling the checkboxes on the left, then click Install to install the selected packages.

Figure 1. The Android SDK Manager shows the SDK packages that are available, already installed, or for which an update is available.

There are several different packages available for the Android SDK. The table below describes most of the available packages and where they’re located in your SDK directory once you download them.

Here’s an outline of the packages required and those we recommend you use:

SDK Tools Required. Your new SDK installation already has the latest version. Make sure you keep this up to date. SDK Platform-tools Required. You must install this package when you install the SDK for the first time. SDK Platform Required.You must download at least one platform into your environment so you’re able to compile your application. In order to provide the best user experience on the latest devices, we recommend that you use the latest platform version as your build target. You’ll still be able to run your app on older versions, but you must build against the latest version in order to use new features when running on devices with the latest version of Android.

To get started, download the latest Android version, plus the lowest version you plan to support (we recommend Android 2.2 for your lowest version).

System Image Recommended. Although you might have one or more Android-powered devices on which to test your app, it’s unlikely you have a device for every version of Android your app supports. It’s a good practice to download system images for all versions of Android your app supports and test your app running on them with the Android emulator. Android Support Recommended. Includes a static library that allows you to use some of the latest Android APIs (such as fragments, plus others not included in the framework at all) on devices running a platform version as old as Android 1.6. All of the activity templates available when creating a new project with the ADT Plugin require this. For more information, read Support Library. SDK Samples Recommended. The samples give you source code that you can use to learn about Android, load as a project and run, or reuse in your own app. Note that multiple samples packages are available — one for each Android platform version. When you are choosing a samples package to download, select the one whose API Level matches the API Level of the Android platform that you plan to use.

Читайте также:  Как сделать превью с андроида

Tip: For easy access to the SDK tools from a command line, add the location of the SDK’s tools/ and platform-tools to your PATH environment variable.

The above list is not comprehensive and you can add new sites to download additional packages from third-parties.

In some cases, an SDK package may require a specific minimum revision of another package or SDK tool. The development tools will notify you with warnings if there is dependency that you need to address. The Android SDK Manager also enforces dependencies by requiring that you download any packages that are needed by those you have selected.

Adding New Sites

By default, Available Packages displays packages available from the Android Repository and Third party Add-ons. You can add other sites that host their own Android SDK add-ons, then download the SDK add-ons from those sites.

For example, a mobile carrier or device manufacturer might offer additional API libraries that are supported by their own Android-powered devices. In order to develop using their libraries, you must install their Android SDK add-on, if it’s not already available under Third party Add-ons.

If a carrier or device manufacturer has hosted an SDK add-on repository file on their web site, follow these steps to add their site to the Android SDK Manager:

  1. Select Available Packages in the left panel.
  2. Click Add Add-on Site and enter the URL of the repository.xml file. Click OK.

Any SDK packages available from the site will now be listed under a new item named User Add-ons.

Troubleshooting

Problems connecting to the SDK repository

If you are using the Android SDK Manager to download packages and are encountering connection problems, try connecting over http, rather than https. To switch the protocol used by the Android SDK Manager, follow these steps:

Источник

Download

Before installing Android Studio or the standalone SDK tools, 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

You’re just a few steps away from building apps for Android!

In a moment, you’ll be redirected to Installing the Android SDK.

I have read and agree with the above terms and conditions

Android Studio

The official Android IDE

  • Android Studio IDE
  • Android SDK tools
  • Android 5.0 (Lollipop) Platform
  • Android 5.0 emulator system image with Google APIs

Download Android Studio

To get Android Studio or stand-alone SDK tools, visit developer.android.com/sdk/

Intelligent code editor

At the core of Android Studio is an intelligent code editor capable of advanced code completion, refactoring, and code analysis.

The powerful code editor helps you be a more productive Android app developer.

Code templates and GitHub integration

New project wizards make it easier than ever to start a new project.

Start projects using template code for patterns such as navigation drawer and view pagers, and even import Google code samples from GitHub.

Multi-screen app development

Build apps for Android phones, tablets, Android Wear, Android TV, Android Auto and Google Glass.

With the new Android Project View and module support in Android Studio, it’s easier to manage app projects and resources.

Virtual devices for all shapes and sizes

Android Studio comes pre-configured with an optimized emulator image.

The updated and streamlined Virtual Device Manager provides pre-defined device profiles for common Android devices.

Android builds evolved, with Gradle

Create multiple APKs for your Android app with different features using the same project.

Manage app dependencies with Maven.

Build APKs from Android Studio or the command line.

More about Android Studio

For more details about features available in Android Studio, read the overview at Android Studio.

If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.

System Requirements

Windows

  • Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit)
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Java Development Kit (JDK) 7
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality

Mac OS X

  • Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Java Runtime Environment (JRE) 6
  • Java Development Kit (JDK) 7
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality
Читайте также:  About android sdk tools

On Mac OS, run Android Studio with Java Runtime Environment (JRE) 6 for optimized font rendering. You can then configure your project to use Java Development Kit (JDK) 6 or JDK 7.

Linux

  • GNOME or KDE desktop
  • GNU C Library (glibc) 2.15 or later
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Oracle® Java Development Kit (JDK) 7

Tested on Ubuntu® 14.04, Trusty Tahr (64-bit distribution capable of running 32-bit applications).

Источник

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.

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.

Источник

Читайте также:  Dream league soccer для андроид без кеша
Оцените статью