Getting error in Android SDK installation


#1

I am trying to install android sdk using following command in mac system

brew cask install android-sdk

but it shows me it is already installed. So I tried reinstallation using following command.

brew cask reinstall android-sdk

But this command again through following error

==> Uninstalling Cask android-sdk
Error: No such file or directory @ unlink_internal - /usr/local/share/android-sdk

I dont know what to do about this.


#2

on mac you have better luck installing Android Studio instead just make sure you set ANDROID_HOME environment variable