5

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 tools\bin\sdkmanager.bat
and tools\bin\avdmanager.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:\Development\Android\Sdk to user variable - ANDROID_HOME
and
D:\Development\Android\Sdk\platform-tools
D:\Development\Android\Sdk\tools
to system variable PATH

I cannot run the android command in the CMD terminal.

Can someone please help me with this?

0

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

  • Thank You man, downgrading does the job. – Nishanth Kr Jun 13 '18 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.