Как установить sdk platform tools для 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.

Install Android Platform Tools and SDK Manager on Windows 10 - Download Options

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.

Install Android Platform Tools and SDK Manager on Windows 10 - License Agreement

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.

Install Android Platform Tools and SDK Manager on Windows 10 - Command Line Tools

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.

Install Android Platform Tools and SDK Manager on Windows 10 - Platform Tools - Download Options

Fig 4

Install Android Platform Tools and SDK Manager on Windows 10 - Platform Tools - License Agreement

Fig 5

Install Android Platform Tools and SDK Manager on Windows 10 - Platform Tools

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.

Install Android Platform Tools and SDK Manager on Windows 10 - System Properties

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.

Install Android Platform Tools and SDK Manager on Windows 10 - Environment Variables

Fig 8

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, toolsbin, 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.

Install Android Platform Tools and SDK Manager on Windows 10 - System Path

Fig 9

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.

# Check adb version
adb --version

# It must show the installed adb version
Android Debug Bridge version 1.0.41
Version 31.0.0-7110759
Installed as E:toolsjavaandroid-sdkplatform-toolsadb.exe

# Check sdkmanager version
sdkmanager --version

# It will show the error as shown below
Error: Could not determine SDK root.
Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: <sdk>cmdline-toolslatest

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: <sdk>cmdline-toolslatest» 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.

Pkg.Revision=3.0
Pkg.Path=cmdline-tools;3.0
Pkg.Desc=Android SDK Command-line Tools

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

Install Android Platform Tools and SDK Manager on Windows 10 - Command Line Tools

Fig 10

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

Install Android Platform Tools and SDK Manager on Windows 10 - System Path

Fig 11

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

Install Android Platform Tools and SDK Manager on Windows 10 - Version Checks

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.

// List all the installed and available platforms, system images and other resources 
sdkmanager --list

// Output should look like
Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
platform-tools | 31.0.0 | Android SDK Platform-Tools 31 | platform-tools

Available Packages:
Path | Version | Description
------- | ------- | -------
add-ons;addon-google_apis-google-15 | 3 | Google APIs
...
...

// We can see that it shows the tools and platform-tools installed by us

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

# Go to the SDK Tools bin directory to access sdkmanager
# Start download the most recent package
sdkmanager "platforms;android-30"

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.

Install Android Platform Tools and SDK Manager on Windows 10 - SDK License Agreement

Fig 13

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

sdkmanager --list
Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
platform-tools | 31.0.0 | Android SDK Platform-Tools 31 | platform-tools
platforms;android-30 | 3 | Android SDK Platform 30 | platformsandroid-30

Available Packages:
Path | Version | Description
------- | ------- | -------
add-ons;addon-google_apis-google-15 | 3 | Google APIs
add-ons;addon-google_apis-google-16 | 4 | Google APIs
...
...

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

sdkmanager --update

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.

// Install default system image for platform android-30
sdkmanager "system-images;android-30;google_apis;x86_64"

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.

// Install Google Play Services system image
sdkmanager "system-images;android-30;google_apis_playstore;x86_64"

Accept the License Agreement to complete the download.

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

// Install Emulator
sdkmanager --channel=3 emulator

Accept the License Agreement to complete the download.

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

// Install Build Tools
sdkmanager "<build tools version>"

// Example
sdkmanager "build-tools;30.0.3"

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 <emulator name> with the actual name preferred by you.

// Create the emulator using default system image
avdmanager create avd -n <emulator name> -k "system-images;android-30;google_apis;x86_64" -g "google_apis"

// Example:
avdmanager create avd -n emulator30 -k "system-images;android-30;google_apis;x86_64" -g "google_apis"

// Create emulator using Google Play Services system image
avdmanager create avd -n <emulator name> -k "system-images;android-30;google_apis_playstore;x86_64"

// Example:
avdmanager create avd -n emulator30ps -k "system-images;android-30;google_apis_playstore;x86_64"

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.

// Create the emulator using default system image
avdmanager create avd -n <emulator name> -k "system-images;android-29;default;x86_64" -g "default"

// Example:
avdmanager create avd -n emulator29 -k "system-images;android-29;default;x86_64" -g "default"

// Create emulator using Google Play Services system image
avdmanager create avd -n <emulator name> -k "system-images;android-29;google_apis_playstore;x86_64"

// Example:
avdmanager create avd -n emulator29ps -k "system-images;android-29;google_apis_playstore;x86_64"

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.

Install Android Platform Tools and SDK Manager on Windows 10 - Emulator Path

Fig 14

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

// List the available emulators
emulator -list-avds

// Output
default28
emulator30
emulator30ps

It will list all the AVDs installed by us.

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

// Run Emulator
emulator -avd <emulator name>

// Example

emulator -avd emulator30

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

Install Android Platform Tools and SDK Manager on Windows 10 - AVD

Fig 15

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

// Delete Emulator
avdmanager delete avd -n <emulator name>

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.

The Android SDK Platform Tools are programs used to directly interface with the Android operating system. This includes tools such as adb and fastboot.

It supports Windows, Linux, and Mac OS X. There is an installable version and a portable version.

Android SDK Platform Tools

Windows

  1. Download the Android SDK (from Google’s website) and install it.

]

  1. Be sure to record the destination folder, or choose where you would like it. Default is C:androidandroid-sdk .

  2. Once installed, start SDK Manager (the checkbox will already be selected)

  1. Once the SDK opens, check the first three (3) boxes; they are labeled «Tools,» «Android SDK Tools,» and «Android SDK Platform-tools«. Install these packages.

  2. Once the packages have finished installing, you can close the program.

  3. You will have to be in the platform-tools folder to use the tools, so move any needed files there.

Mac OS X

Ubuntu/Debian/Linux Mint

On Ubuntu 12.10, android-tools are inside the repositories and can be easily downloaded.

sudo apt-get install android-tools-adb android-tools-fastboot

This package includes adb, fastboot, and other binaries.

On older Ubuntu version or Debian systems, you’ll need to manually add the PPA:

sudo add-apt-repository ppa: nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

Once that package is installed, adb and fastboot can be run from anywhere in the terminal.

Fedora

Arch Linux/Chakra

Just install these two packages from the AUR:

  • android-sdk-platform-tools
  • udev-android-rules

You can now use adb and fastboot from the terminal, anywhere.

Other Linux Distros

If all else fails or your distro doesn’t support the packages we give you, no worries. Just use the linux_sdk_adb-installer_v2.sh script under the «linux» folder in the archive, and everything will be installed in no time.

This script comes from here

Make sure your phone is being recognized- type:

If your drivers are installed correctly, this should show your phone’s serial number. You should hear the found device noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.

Quick and Dirty ADB

If you need ADB on a portable drive or don’t feel like installing the Platform Tools, just use this.

{{Note|Put all files to be used by ADB in the folder where you extracted it to, since it is not a system program.}}

Files to Get

You will need to download this archive and extract it.

  • miniadb_inc.zip — Modified from Scotty’s original miniadb package. Now with Linux installation instructions and binaries, and cleaned up to work for all phones.

Quick and Dirty ADB (Windows)

First, unzip your miniadb-inc.zip file into the root folder of your hard drive, such as C:. This means the top level, not inside any folders, so just copy and paste the folder onto C: with everything else that is there.

You actually can call it whatver you want,but directions from here forward will assume this folder to be named miniadb_inc

Open a command window. In Windows 7, click the start bubble in the lower left and type command in the search box to find the Command Prompt application. In Windows XP, go to Run and type cmd.exe to run it.

Type the following at the prompt in your cmd window to change to your miniadb_inc directory.

Your command prompt should display c:miniadb_inc> provided you:

  1. unzipped the miniadb_inc zip
  2. put the folder on your c drive
  3. didn’t change the name

Now make sure usb debugging is checked in Settings/Apps/Development on your phone,and plug your phone into your PC with a usb cable

Quick and Dirty ADB (Mac and Linux)

Extract the miniadb-inc.zip somewhere accessible, like the /home folder.

  • Mac OS X: Use the adbmac binary: substitute all adb commands with ./adbmac.
  • Linux: Use the adblinux binary: substitute all adb commands with ./adblinux.

Sources

  • Reddit r/Nexus4: IAmAN00bie — How to unlock/root your Nexus 4 with ADB.
  • Droid Forums — Linux Android SDK Auto Installer
  • XDA-Developers — Set up ADB and Fastboot On A Mac Easily

22 октября 2008 года в Android появился магазин приложений Play Market. С тех пор прошло больше 10 лет и сегодня Google Play насчитывает почти 3 миллиона приложений в их числе Telegram с каналом AndroidInsider. Как же разработчикам со всего мира удается создавать качественные продукты? Они используют Android SDK. Чтобы получить все инструменты и средства разработки приложений, необходимо скачать среду разработки Android Studio. Но что, если вы хотите воспользоваться Android SDK с командной строкой без Android Studio и ненужных средств? В этом материале мы подскажем, как правильно установить и настроить Software Development Kit.

Как установить Android SDK на Windows, Mac и Linux. Фото.

Ручная установка

Переходим по этой ссылке, находим раздел «Command line tools only» и скачиваем нужную версию в зависимости от вашей системы.

Создайте папку Android в корневой папке системы. В случае с Windows это локальный диск «С», а в OS X и Linux — домашняя папка пользователя. Распакуйте скачанный архив в папку Android. Для дальнейшей работы необходим установленный пакет Java на компьютере. OS X из коробки его поддерживает, чтобы проверить это, в терминале вбейте «which java», система должна выдать расположение пакета. На Windows и Linux устанавливаем JDK по этой ссылке.

Если вы используете Linux, вам понадобится установить еще несколько пакетов с помощью этой команды «sudo apt-get install lib32ncurses5 lib32stdc++6». Для других версий Linux необходимо найти подходящие пакеты ncurses5 и stdc++6.

Установка компонентов

Переходим в папку «Android/bin», находим исполняемый файл sdkmanager и запускаем, откроется следующее окно:

Как установить Android SDK на Windows, Mac и Linux. Установка компонентов. Фото.

Выбираем «Android SDK Tools» и «Android SDK Platform-Tools», на Windows необходимо выбрать еще и «Google USB Driver». После этого подтвердите условия лицензионного соглашения, и начнется установка инструментов. В Windows они расположатся в папке «WindowsusersИмя пользователяAppDataLocalAndroid», а на Linux и Mac в папке «.Android».

Ссылки

Теперь давайте создадим символическую ссылку на эти папки, чтобы можно было быстро запустить инструменты через командную строку.

В Windows переходим в «Этот компьютер → Свойства → Дополнительные параметры системы → Дополнительно → Переменные среды». В «Переменные среды для пользователя» находим строку «Path» и кликаем по ней 2 раза. Откроется окно, в нём нажимаем «Создать» и вставляем полный путь к инструментам через точку с запятой. Должно выглядеть примерно так «C:Androidtools;C:Androidplatform-tools».

На Mac в домашней папке находим скрытый файл «.bash_profile» или просто «.profile». Открываем его командой «nano ~/.profile» и добавляем путь до инструментов:

export PATH=»$HOME/Android/tools:$PATH»
export PATH=»$HOME/Android/platform-tools:$PATH»

Сохраняем файл комбинацией «CMD+X» и далее жмём «Y». На Linux процесс аналогичен, но нужно запускать файл .bashrc.

Вот и всё. Теперь команды Android SDK доступны через консоль. Вы сможете, например, устанавливать образы и вручную обновлять смартфон.

Источник


Как установить ADB, Fastboot и драйвера


Утилиты ADB и Fastboot входят в состав комплекта разработки Android SDK (не стоит путать с Android Studio и уж тем более скачивать ее громоздкий установочный файл, если вы, конечно, не собираетесь заниматься разработкой под Android). ADB является инструментом для отладки, который позволяет получить доступ к консоли Андроид с компьютера (подробнее →) подключив гаджет к ПК по USB. При этом должна быть включена отладка. Fastboot предназначена для работы с устройством, когда то загружено в одноименном режиме (если такой есть на вашем аппарате).


Содержание — Как установить ADB, Fastboot и драйвера:

  1. Как установить ADB и Fastboot: инструкция
  2. Устанавливаем драйверы ADB и Fastboot под Windows
  3. Как начать работать с Fastboot и ADB

При помощи ADB можно управлять смартфоном/планшетом с компьютера: сделать бэкап приложенийсбросить графический пароль, записать скринкаст, перевести смартфон в режим Recovery и многое другое. Кроме того с ADB можно работать и через Wi-Fi. Для этого на вашем устройстве должны быть получены root-права, а также понадобится специальное приложение, осуществляющее подключение к компу по сети. Например, ADB Wireless либо WiFi ADB. Но это уже материал для отдельной статьи. 

Используя Fastboot, вы сможете устанавливать прошивки, кастомные Рекавери (TWRP или CWM), разблокировать Bootloader (на аппаратах HTC, Motorola, Sony, Nexus, Huawei, последних LG он заблокирован), очищать разделы системы.

Как установить ADB и Fastboot: инструкция

1. Первым делом переходим на официальный сайт, откуда можно скачать Android SDK: https://developer.android.com. Спускаемся вниз страницы к разделу «Command line tools only» и выбираем загрузку архива для Windows.

Command line tools only

2. Установите галочку в чекбоксе «I have read and agree with the above terms and conditions» и нажмите кнопку «Download Android Command Line Tools for Windows». Начнется загрузка архива.

Download Android Command Line Tools for Windows

3. Скачайте его и разархивируйте в корень Диска «C:».

4. Также необходимо загрузить Java Development Kit с официальной страницы. Перейдите на сайт, согласитесь с условиями лицензионного соглашения, отметив пункт «Accept License Agreement», и скачайте версию JDK, соответствующую разрядности вашей системы.

Accept License Agreement

После этого установите скачанный пакет. Дальше описаны несколько вариантов установки Fastboot и ADB – пользуйтесь тем, который для вас проще.

Первый способ

Вернитесь к папке c Android SDK, откройте «tools» и запустите «android».

Как установить ADB и Fastboot: инструкция

Отметьте пункт «Android SDK Platform-tools» (а также «Google USB driver», если у вас устройство Nexus) и нажмите «Install Packages».

Как установить ADB и Fastboot: инструкция

Про установку драйверов для других аппаратов читайте ниже.

Выберите «Accept License» и нажмите «Install».

Как установить ADB и Fastboot: инструкция

Мой лог показал, что в процессе установки возникла ошибка. Но в итоге все завершилось успешно.

Как установить ADB и Fastboot: инструкция

По завершении выполнения вышеописанных действий в папке «tools_версия-windows» появится «platform-tools», а в ней будут интересующие нас «ADB» и «Fastboot».

Как установить ADB и Fastboot: инструкция

Как установить ADB и Fastboot: инструкция

Второй способ

Перейдите в папку «sdk-tools-windows-версия» → «tools» → «bin» и, зажав клавишу «Shift», щелкните правой кнопкой мышки по пустой области. Выберите «Открыть окно команд» либо «Открыть окно PowerShell здесь», если на ПК или ноутбуке установлена одна из последних сборок Windows 10.

Открыть окно PowerShell здесь

Вставьте команду в PowerShell или командную строку (в PowerShell добавьте ./ вначале):

sdkmanager platform-tools

sdkmanager platform-tools

Щелкните «Enter», чтобы выполнить команду. Произойдет загрузка файлов и появится запрос на установку:

Accept? (y/N)

Accept? (y/N)

Чтобы разрешить, введите y, то есть «yes», и нажмите «Enter», после чего начнется установка «platform-tools».

platform-tools

В конце в командной строке отобразится сообщение, что процедура завершилась успешно. А папка «platform-tools» с ADB и Fastboot внутри появится в «sdk-tools-windows-version».

(!) Если по какой-либо причине не удается установить ADB и Fastboot предыдущими способами, воспользуйтесь третьим вариантом – просто скачайте архив «platform-tools» и разархивируйте на диск «C:».

Устанавливаем драйверы ADB и Fastboot под Windows

Чтобы компьютер корректно распознавал смартфон либо планшет, необходимо загрузить драйвер USB:

  • Samsung – драйвер входит в состав утилиты Kies: https://www.samsung.com либо же его можно скачать отдельно, выбрав нужную модель: https://www.samsung.com
  • HTC – в составе HTC Sync Manager: https://www.htc.com
  • Nexus – драйвер Android устанавливается вместе с Android SDK, о чем писалось выше.
  • Huawei – совместно с утилитой HiSuite: https://consumer.huawei.com
  • LG – установите LG PC Suite: https://www.lg.com
  • Motorola – смотрите на этой странице: https://motorola-global-portal.custhelp.com
  • Sony Xperia – драйверы FastBoot для всех моделей находятся здесь: https://developer.sonymobile.com
  • Xiaomi – Mi PC Suite: https://pcsuite.mi.com
  • MTK – для китайских аппаратов на чипах MediaTek: https://online.mediatek.com
  • Lenovo – выберите модель смартфона, планшета и загрузите ADB драйвер: https://support.lenovo.com
  • Решения для девайсов других производителей ищите на их официальных сайтах.

Существуют различные универсальные установщики ADB драйверов (к примеру, этот: https://adbdriver.com) – ими тоже можно пользоваться, например, когда по какой-то причине не удалось установить официальное решения.

Если для вашей модели идет драйвер без установщика, придется выполнить следующие действия:

1. Зайдите в «Панель управления» → «Диспетчер устройств». В Windows 10 достаточно нажать правой кнопкой мышки по меню «Пуск» и выбрать «Диспетчер устройств».

Устанавливаем драйверы ADB и Fastboot под Windows

2. Найдите в списке девайс для которого нужно установить драйверы. Клацните правой кнопкой мышки и нажмите «Обновить драйверы».

Устанавливаем драйверы ADB и Fastboot под Windows

Как видите, компьютер корректно распознает мой планшет Nexus 7. Если ваш ПК определяет смартфон неправильно или напротив устройства стоит желтый треугольник с восклицательным знаком внутри, «ручная» установка драйверов Android для вас обязательна.

3. Выберите пункт «Выполнить поиск драйверов на этом компьютере».

Устанавливаем драйверы ADB и Fastboot под Windows

4. Укажите путь к папке с драйверами на ПК.

Устанавливаем драйверы ADB и Fastboot под Windows

Дождитесь завершения установки и затем заново подключите гаджет к компьютеру по USB.

Как начать работать с Fastboot и ADB

Работа с ADB или Fastboot осуществляется из командной строки, зайти можно двумя способами:

Способ 1: Правой клавишей мышки клацните на «Пуск» и выберите «Командная строка (администратор)». Далее при помощи команд нужно перейти к папке с ADB и Fastboot (после ввода каждой нажимайте «Enter»).

Чтобы вернуться в корень диска «C:», используйте:

cd /

Благодаря этой команде открываем нужную папку:

cd

В моем случае получилось так:

cd tools_версия-windowsplatform-tools

Как начать работать с Fastboot и ADB

 У вас выйдет (разработчики Google изменили название архива уже после написания первоначальной редакции этой инструкции):

cd sdk-tools-windows-versionplatform-tools

Путь к Fastboot и ADB указан, теперь работаем с ними из консоли.

Чтобы не выполнять эти действия каждый раз, добавьте путь к «platform-tools» в переменную «Path». Сначала зайдите в папку, в строке навигации щелкните правой кнопкой мыши по «platform-tools» и выберите «Копировать адрес».

Копировать адрес

Перейдите в «Панель управления». Для этого нажмите «Win» + «R» и в поле «Открыть:» вставьте control. Нажмите «ОК».

control

Выберите «Система» → «Дополнительные параметры системы» → «Переменные среды…».

Переменные среды

Найдите перемененную «Path», выделите ее и выберите «Изменить…».

Path

Нажмите «Создать», вставьте путь к папке «platform-tools» и щелкните «ОК».

2: Зайдите в «sdk-tools-windows-version» → «platform-tools», затем, удерживая «Shift», щелкните правой кнопкой мыши по пустому месту и выберите пункт «Открыть окно команд» или «Открыть окно PowerShell здесь».

Введите следующее, чтобы проверить как ПК видит Android (в Windows PowerShell вставьте ./ перед командой):

adb devices

Не забывайте, что для работы с ADB должна быть включена отладка по USB! Больше полезных команд вы найдете в прошлой статье, ссылка есть в начале данного поста.


В этом руководстве мы покажем вам шаги по загрузке и установке Android SDK Platform Tools на ваш компьютер. Среди множества инструментов и пользовательских двоичных файлов, которые используются в экосистеме с открытым исходным кодом, нельзя отрицать тот факт, что инструменты ADB и Fastboot, вероятно, являются наиболее важными. Более того, это один из немногих инструментов, которые используются как техническими энтузиастами, так и обычными пользователями.

инструменты платформы Android SDK

Если говорить о последнем наборе пользователей, они могут использовать его для загрузки своего устройства в Stock Recovery, а затем отформатировать свое устройство или прошить прошивку через ADB Sideload. Кроме того, они также могут использовать его для выполнения команд ADB Shell и удаления вредоносных программ или предустановленных приложений со своего устройства. Затем, если мы переключим наше внимание на технарей, платформа-инструменты — это ворота для выхода на рынок заказной разработки.

инструменты платформы Android SDK

Начиная с загрузки их устройства в режиме быстрой загрузки, заканчивая прошивкой исправленного Magisk boot.img для root, прошивкой прошивки, чтобы разблокировать их устройство, или прошивкой пользовательских ПЗУ и восстановлением, вероятно, ни одна из этих настроек не была бы возможна, если бы не этот инструмент. Что ж, хватит похвал, давайте теперь перейдем непосредственно к задаче и расскажем вам о шагах по загрузке и установке Android SDK Platform Tools на ваш ПК.

инструменты платформы Android SDK

Приведенные ниже инструкции перечислены в отдельных разделах для простоты понимания. Обязательно следуйте той же последовательности, как указано.

ШАГ 1. Загрузите инструменты платформы Android SDK

  1. Для начала загрузите Android SDK Platform Tools на свой компьютер снизу:Окна | линукс | macOS
    [Note: Links are automatically updated from Google’s servers]
  2. После загрузки извлеките его в любое удобное место на вашем ПК.инструменты платформы Android SDK
  3. Это даст вам папку platform-tools, которая будет использоваться в этом руководстве.

ШАГ 2: Добавьте ADB в путь

Итак, вы загрузили и распаковали Android SDK Platform Tools в удобное место по вашему выбору. Ваш следующий шаг должен заключаться в том, чтобы сообщить вашей системе об этом местоположении. И это можно сделать, добавив путь ADB к системным переменным среды. Для этого вы можете либо обратиться к нашему подробному руководству о том, как добавить ADB в путь в Windows 11, либо ознакомиться с приведенными ниже более короткими инструкциями:

  1. Для начала запишите место, куда вы распаковали Android SDK Platform Tools.
  2. Затем перейдите в меню «Пуск», найдите «Просмотр дополнительных параметров системы» и откройте его.Инструменты платформы Android SDK
  3. Теперь вы попадете на вкладку «Дополнительно» в свойствах системы.
  4. Нажмите кнопку «Переменные среды», расположенную в правом нижнем углу.
    инструменты платформы Android SDK
  5. Теперь выберите поле «Путь» в разделе «Системная переменная» и нажмите кнопку «Изменить».
    инструменты платформы Android SDK
  6. После этого нажмите кнопку «Создать» и вставьте папку с инструментами платформы (которую вы ранее скопировали) в предоставленное место.
    инструменты платформы Android SDK
  7. Затем нажмите OK, чтобы сохранить этот путь. Снова нажмите «ОК», чтобы закрыть переменную среды, и, наконец, нажмите «ОК», чтобы закрыть «Свойства системы».
  8. Вот и все. Теперь перезагрузите компьютер (необязательно, но рекомендуется), и ваши задачи будут выполнены.

ШАГ 3: Установите драйверы Fastboot

ADB — это лишь верхушка айсберга, большая часть вашей работы обычно выполняется в среде Fastboot. Однако ваш компьютер не сможет идентифицировать подключенное устройство в режиме быстрой загрузки, если на нем не установлены необходимые драйверы быстрой загрузки. Поэтому, пожалуйста, обратитесь к нашему руководству по установке драйверов Fastboot в Windows 11.

инструменты платформы Android SDK

Как проверить, успешно ли установлены ADB и Platform Tool?

Теперь, когда мы закончили настройку среды ADB и Fastboot, давайте протестируем ее и проверим результаты. В связи с этим сначала мы проверим соединение ADB, а затем соединение Fastboot. Следуйте вместе.

Проверьте соединение с АБР

  1. Для начала включите отладку по USB на вашем устройстве, чтобы сделать его распознаваемым ПК в режиме ADB.
  2. Для этого перейдите в «Настройки»> «О телефоне»> «Семь раз нажмите на номер сборки». [MIUI Number in Xiaomi Devices].
  3. Затем вернитесь в «Настройки»> «Система»> «Параметры разработчика»> «Включить отладку по USB».инструменты платформы Android SDK
  4. Перейдите в папку с инструментами платформы, введите CMD в адресной строке и нажмите Enter.инструменты платформы Android SDK
  5. Это запустит окно CMD с каталогом папки platform-tools.
  6. Теперь выполните приведенную ниже команду, чтобы проверить устройства ADB Connectionadb.

    инструменты платформы Android SDK

  7. Теперь вы должны получить уникальный идентификатор устройства, означающий, что соединение с ADB установлено успешно.
  8. Если вы также получили несанкционированное сообщение, проверьте свое устройство, появится подсказка, нажмите «Разрешить».инструменты платформы Android SDK
  9. Затем снова выполните приведенную выше команду, и на этот раз вы не получите несанкционированное предупреждение в CMD.

Проверьте соединение Fastboot

  1. Для начала убедитесь, что вы выполнили все шаги, упомянутые в приведенном выше разделе ADB.
  2. Затем выполните приведенную ниже команду в окне CMD, открытом в папке инструментов платформы: adb reboot bootloader

    инструменты платформы Android SDK

  3. Теперь ваше устройство загрузится в режиме быстрой загрузки, что означает успешное подключение.

Могу ли я использовать любой другой инструмент ADB?

Не рекомендуется использовать какие-либо другие сторонние инструменты ADB и/или Fastboot. Это связано с тем, что большинство этих инструментов устарели и не получали обновлений годами. Более того, они также не синхронизированы с более новыми изменениями Android. [such as the FastbootD Mode, dynamic partitions, etc].

Могу ли я использовать Powershell вместо CMD для выполнения команд?

Хотя вы можете использовать Powershell вместо командной строки, но я бы не советовал вам этого делать. Это связано с тем, что Powershell требует, чтобы вы добавили пару дополнительных символов или ключевых слов перед каждой командой, что делает ее довольно сложной и запутанной. Так что придерживайтесь CMD, и у вас не возникнет никаких проблем.

Как открыть CMD от имени администратора внутри инструментов платформы

Если вы хотите открыть командную строку от имени администратора в папке инструментов платформы, вы можете воспользоваться двумя разными подходами:

  • Откройте CMD от имени администратора из меню «Пуск», а затем с помощью команды cd измените каталог на папку platform-tool. Преимущество — это проще выполнить. Недостаток — вам придется делать это каждый раз.
  • Добавьте параметр «Открыть CMD от имени администратора» в контекстное меню. [Personally, I would recommend this approach].Преимущество — требуется только однократная настройка. Недостаток — немного технический в настройке.

    инструменты платформы Android SDK

Список всех команд ADB и Fastboot

Из этого руководства вы сможете получить все важные и наиболее часто используемые команды ADB и Fastboot, а также инструкции по их использованию. Так что ознакомьтесь с нашим руководством «Список полезных команд ADB и Fastboot и их использование».

инструменты платформы Android SDK

Как исправить ошибки ADB и Fastboot

ни для кого не секрет, что домен ADB и Fastboot подвержен множеству проблем. От невозможности распознавания устройства в режиме быстрой загрузки до неспособности CMD прошить файл — вы можете столкнуться с множеством ошибок и проблем. К счастью, у нас все есть, ознакомьтесь с нашим руководством «Как исправить все возможные ошибки ADB и Fastboot».

инструменты платформы Android SDK

Итак, все это было из этого руководства о том, как загрузить и установить Android SDK Platform Tools. Мы также рассмотрели некоторые из наиболее часто задаваемых вопросов, связанных с этим инструментом. Если у вас есть какие-либо вопросы относительно вышеупомянутых шагов, сообщите нам об этом в комментариях. Мы вернемся к вам с решением в ближайшее время.

In this guide, we will show you the steps to download and install the Android SDK Platform Tools on your PC. Among the plethora of tools and custom binaries doing the rounds in the open-source ecosystem, there’s no denying the fact that the ADB and Fastboot Tools are probably the most important ones. Moreover, it is among the very few tools that are used by both tech enthusiasts and normal users alike.

android sdk platform tools

If we talk about the latter set of users, they could use it to boot their device to Stock Recovery and then format their device or flash the firmware via ADB Sideload. Likewise, they could also use it to execute ADB Shell commands and remove bloatware or preinstalled apps from their device. Then if we shift our attention towards the tech geeks, well, the platform-tools is the gateway to entering the custom development market.

android sdk platform tools

Right from booting their device to Fastboot Mode, to flashing Magisk patched boot.img for root, flashing firmware to unbrick their device, or flashing custom ROMs and recoveries, probably none of these tweaks would be possible if it wasn’t for this tool. Well, enough of the praise, let’s now get straight to the task and make you aware of the steps to download and install the Android SDK Platform Tools on your PC.

How to Install Android SDK Platform Tools

android sdk platform tools

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned.

STEP 1: Download Android SDK Platform Tools

  1. To begin with, download the Android SDK Platform Tools on your PC from below:
    Windows | Linux | macOS 
    [Note: Links are automatically updated from Google's servers]
  2. Once downloaded, extract it to any convenient location on your PC.android sdk platform tools
  3. Doing so will give you the platform-tools folder, which will be used throughout this guide.

STEP 2: Add ADB to Path

So you have downloaded and extracted the Android SDK Platform Tools to a convenient location of your choice. Your next step should be to inform your system about this location as well. And this could be done by adding the ADB path to the system’s Environmental Variables. To do so, you may either refer to our detailed guide on How to Add ADB to Path in Windows 11 or check out the below shorter instructions-

  1. To begin with, note down the location where you have extracted the Android SDK Platform Tools.
  2. Then head over to the Start menu, search View Advanced System Settings, and open it.Android SDK Platform Tools
  3. You shall now be taken to the Advanced tab of System Properties.
  4. Click on the Environmental Variables button situated at the bottom right.
    android sdk platform tools
  5. Now select the Path field under System Variable and click on the Edit button.
    android sdk platform tools
  6. After that, click on the New button and paste the platform-tools folder location (that you had earlier copied) in the space provided.
    android sdk platform tools
  7. Then click OK to save this path. Again click OK to close Environmental Variable and finally click OK to close System Properties.
  8. That’s it. Now restart your PC (optional but recommended) and your tasks stand complete.

STEP 3: Install Fastboot Drivers

The ADB is just the tip of the iceberg, most of your work would usually be carried out in the Fastboot Environment. However, your PC wouldn’t be able to identify the connected device in Fastboot Mode unless it has the necessary Fastboot Drivers installed. So please refer to our guide on How to Install Fastboot Drivers in Windows 11.

android sdk platform tools

How to Check if ADB and Platform Tool is Successfully Installed?

Now that we are done setting up the ADB and Fastboot environment, let’s put it to test and verify the results. In this regard, first, we will verify the ADB Connection and then the Fastboot Connection. Follow along.

Verify ADB Connection

  1. To begin with, enable USB Debugging on your device so as to make it recognizable by the PC in ADB mode.
  2. To do so head over to Settings > About Phone > Tap on Build Number 7 times [MIUI Number in Xiaomi Devices].
  3. Then go back to Settings > System > Developer Options > Enable USB Debugging.android sdk platform tools
  4. Head over to the platform-tools folder, type in CMD in the address bar, and hit Enter.android sdk platform tools
  5. This will launch the CMD window with the platform-tools folder directory.
  6. Now execute the below command to verify the ADB Connection
    adb devices

    android sdk platform tools

  7. You should now get your unique device ID, signifying that the ADB connection is successful.
  8. If you also get an unauthorized message, then check your device, there will be a prompt, tap on Allow.android sdk platform tools
  9. Then again execute the above command and this time you wouldn’t get the unauthorized alert in the CMD.

Verify Fastboot Connection

  1. To begin with, make sure that you have carried out all the steps mentioned in the above ADB section.
  2. Then execute the below command in the CMD window that is opened in the platform-tools folder:
    adb reboot bootloader

    android sdk platform tools

  3. Your device will now boot to the Fastboot Mode, signifying that the connection stands successful.

Can I use any other ADB Tool?

It is not advised to use any other third-party ADB and/or Fastboot Tools. This is because most of these tools are outdated and haven’t received updates in years. Moreover, they aren’t in sync with newer Android changes either [such as the FastbootD Mode, dynamic partitions, etc].

Can I use Powershell instead of CMD to Execute Commands?

While you could use Powershell instead of Command Prompt, but I wouldn’t advise you to do so. This is because Powershell requires you to append a couple of additional characters or keywords before each command which makes it quite difficult and confusing. So stick with CMD and you wouldn’t face any issues as such.

How to Open CMD as Admin inside platform-tools

If you want to open the Command Prompt as an administrator inside the platform-tools folder, then there are two different approaches that you could take-

  • Open CMD as an administrator from the Start Menu and then use the cd command to change the directory to the platform-tool folder.
    Benefit- it is easier to carry out. 
    Drawback- You will have to do this everytime.
  • Add the Open CMD as administrator option in the right-click menu. [Personally, I would recommend this approach].
    Benefit- it just requires a one-time setup required. 
    Drawback- Slightly technical to set up.

    android sdk platform tools

List of all ADB and Fastboot Commands

From this guide, you will be able to get hold of all the important and most frequently used ADB and Fastboot Commands as well as their usage instructions. So do check out our guide on A List of Useful ADB and Fastboot Commands and their Usage.

android sdk platform tools

How to Fix ADB and Fastboot Errors

it is no hidden secret that the ADB and Fastboot domain is prone to quite a few issues. From the inability of the device to be recognized in Fastboot Mode to the inability of the CMD to flash a file, you might com across quite a few bugs and issues. Fortunately, we have it all covered, do check out our guide on How to Fix All Possible ADB and Fastboot Errors.

android sdk platform tools

So this was all from this guide on how you could download and install the Android SDK Platform Tools. We have also addressed some of the most commonly asked queries relating to this tool. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


  • Fastboot Commands not working: How to Fix
  • How to Execute Android ADB Fastboot Commands Wirelessly
  • How to Use ADB and Fastboot Commands on Android Without PC
  • ADB VENDOR KEYS Not Set: How to Fix

About Chief Editor

Sadique Hassan

administrator

A technical geek by birth, he always has a keen interest in the Android platform right since the birth of the HTC Dream. The open-source environment always seems to intrigue him with the plethora of options available at his fingertips. “MBA by profession, blogger by choice!”

Такая популярная операционная система как Android не может обойтись без мощных и простых средств разработки. И именно здесь Android SDK (Software Development Kit или Набор средств для разработки ПО) показывает себя с лучшей стороны. Сегодня мы установим SDK и посмотрим, что он умеет. Это будет цикл статей о разработке приложений и игр для Android

Подготовка к установке

Android SDK поддерживает большинство современных операционных систем под архитектурой x86 и x86_64, в том числе Windows, многие дистрибутивы Linux и Mac OS X. Также на ПК должен быть установлен Java Development Kit (Java 7 или Java 8) , который обязательно потребуется для многих возможностей SDK, ведь Android неразрывно связан с Java. 

Стоит заметить, что для встроенного эмулятора Android необходимо хорошее «железо» на PC, как, в принципе, и для других современных средств разработки.

Установка с помощью Android Studio

Разработка под Android: устанавливаем SDK

Уже долгое время существует Android Studio — официальная IDE (Integrated Development Enviroment) для разработки под Android. Туда уже включено всё необходимое и устанавливается в один клик. Достаточно лишь установить IDE, и вы также сможете использовать все возможности SDK, интегрированные внутри среды разработки. 

Скачать Android Studio можно с официального сайта. Там же можно найти много полезных гайдов по работе с Android SDK, но, к сожалению, доступны они исключительно на английском языке. 

Установка отдельного пакета

Если вы не рассчитываете использовать такой мощный инструмент как Android Studio или у вас уже есть установленная Intellij IDEA, на основе которой и работает эта среда разработки, то вы можете установить Android SDK отдельно. Однако никаких других преимуществ этот метод установки не даст и рекомендуется воспользоваться предыдущим способом.

Разработка под Android: устанавливаем SDK

Для загрузки отдельного пакета инструментов для разработки без IDE необходимо воспользоваться сайтом Android Developer. Игнорируя все возможные упоминания об Android Studio, спускаемся в самый низ страницы и находим раздел «Get just command line tools» — можно также воспользоваться поиском по странице. После скачивания подходящего пакета для вашей операционной системы, достаточно распаковать в любое удобное для вас хранилище — рекомендуется также указать местоположение SDK в Intellij IDEA (Project Structure > SDK).

Запуск и возможности

Разработка под Android: устанавливаем SDK

Для получения доступа ко всему функционалу Android SDK достаточно запустить пакетный файл android, если вы работаете под Windows, или же в терминале выполнить команду «android» в папке «tools/» вашего SDK для запуска на Linux и MacOS X. Вам будет предложено установить инструменты для разных версий API, чем больше инструментов установлено — тем лучше. Загрузка пакетов может занять много времени в зависимости от вашей системы и скорости интернет-соединения.

Разработка под Android: устанавливаем SDK

Перейдём к описанию основных инструментов:

  • Platform-tools включает в себя основные инструменты взаимодействия с Android, такие как ADB, fastboot и systrace. Android Debugging Bridge поможет отследить ошибки в работе приложений на смартфоне, а также выполнять некоторые действия по работе с APK; fastboot, знакомый всем любителям прошивки своих Android-девайсов, работает в паре с ADB и помогает наладить работу устройства ещё до загрузки ОС, а systrace способен анализировать скорость работы процессов в операционной системе;
  • Build-tools работают вместе с Platform-tools, но могут быть обновлены отдельно. Сюда входят такие утилиты как ProGuard для защиты ваших APK-файлов, JOBB для работы с расширениями в формате *.obb, и Zipalign, необходимый для оптимизации ваших готовых приложений;
  • Кроме того, в SDK предусмотрен продвинутый эмулятор ОС Android, в котором вы сможете протестировать любые приложения и опробовать функции свежих версий Android. Однако для качественной эмуляции необходимо хорошее железо на ПК, также рекомендуется использовать эмуляцию работы x86.

Зачем же нужен Android SDK?

Android SDK — универсальный набор инструментов, который пригодится каждому пользователю смартфона или планшета, работающего под операционной системой Android. Обычный юзер может получить доступ к необходимым логам, восстановить устройство из нерабочего состояния и получить доступ к полноценному эмулятору, тогда как для разработчика это тот самый необходимый минимум, чтобы начать создавать игры и программы для Android.

  • Аниме — причина, по которой нельзя переходить с Android на iOS. Убедился лично
  • Закодировано в России: операционные системы для ПК, которые уже приходят на смену Windows
  • 10 функций macOS Ventura, которые нужно попробовать сразу после установки
  • Как отключить вибрацию на клавиатуре Android. Не будет раздражать
  • Как отключить безопасный режим на телефоне с Android за 10 секунд

Понравилась статья? Поделить с друзьями:
  • Как установить sdd jlr на windows 10
  • Как установить screensaver на windows 10
  • Как установить scrcpy на windows 7
  • Как установить scr на windows 10
  • Как установить scilab на windows 10