jvrodriguesx
jvrodriguesx

Reputation: 271

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?

Upvotes: 10

Views: 13787

Answers (3)

Ally
Ally

Reputation: 4942

I had to navigate to and run the following

cd /Users/<username>/Library/Android/sdk
tools/bin/sdkmanager --licenses

Upvotes: 0

Craig Wheeler
Craig Wheeler

Reputation: 146

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:
  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

Upvotes: 4

Ujjwal Singh
Ujjwal Singh

Reputation: 4988

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

Upvotes: 6

Related Questions