Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - SDK Manager

When I type 'android' at my command prompt I have the following message 'The "android" command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat'.

What do I do?

like image 324
jvrodriguesx Avatar asked Mar 07 '17 01:03

jvrodriguesx


2 Answers

The standalone GUI based SDK manager (and AVD manager) is now gone!

You either have to use the standalone command at <SDK_ROOT>\tools\bin\sdkmanager or
the inbuilt GUI SDK manager within the Android Studio found at: Tools>Android > SDK Manager

like image 65
Ujjwal Singh Avatar answered Oct 17 '22 22:10

Ujjwal Singh


Not sure what has caused this but there is a workaround you just need to download and replace the tools folder in your Android SDK with an earlier version and it will work again.

Follow these steps:

  1. Click the link below for your OS and download a new Android SDK tools folder:
    • (Mac) https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
    • (Windows) https://dl.google.com/android/repository/tools_r25.2.3-windows.zip
  2. Goto your Android SDK folder (on Mac its: /Users/username/Library/Android/sdk) then find the folder named "tools" and delete it
  3. Unzip and copy the tools folder you downloaded from the link to your Android SDK folder

That's it.. You should now be able to run the android command from the terminal again

like image 21
Craig Wheeler Avatar answered Oct 17 '22 20:10

Craig Wheeler