[Solved] WINDOWS: The “android” command is deprecated

when i run the command ‘android’ in command prompt, i get the following:

The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.

For command-line tools, use toolsinsdkmanager.bat
and toolsinavdmanager.bat

**************************************************************************

Invalid or unsupported command 

Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk

I have included:
D:DevelopmentAndroidSdk
to user variable – ANDROID_HOME
and
D:DevelopmentAndroidSdkplatform-tools
D:DevelopmentAndroidSdk ools
to system variable PATH

I cannot run the android command in the CMD terminal.

Can someone please help me with this?

Solution #1:

I too had the same problem and for me it worked as soon as I downgraded the tools.

To downgrade:

SDK Tools Release Notes: https://developer.android.com/studio/releases/sdk-tools.html
SDK Platform Tools Release Notes: https://developer.android.com/studio/releases/platforms.html

To download a manual version of SDK Tools, fill in the following url with a version from the above:

https://dl-ssl.google.com/android/repository/tools_r-windows.zip
https://dl-ssl.google.com/android/repository/tools_r-macosx.zip

For me downgrading to https://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip worked just fine. Once you download an older version the tools, just rename the tools directory at your Android SDK install and replace with the downloaded version.

I didn’t need to downgrade Platform Tools, but if you need to, here are those links as well:

https://dl-ssl.google.com/android/repository/platform-tools_r-windows.zip
https://dl-ssl.google.com/android/repository/platform-tools_r-macosx.zip

Respondent: Amit
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.