title: brew cask install android-sdk
body: <p>I’m having problem to install android sdk (<code>brew cask install android-idk</code>) on Mac OS X.
  I tried to install it for nativescript. I read on people that had the same problem but i couldn't find working solution. 
  I tried to change the java path maybe it cause the issue.</p>
  
  <p>this is the error I get:</p>
  
  <pre><code>==&gt; Caveats
  We will install android-sdk-tools, platform-tools, and build-tools for you.
  You can control android sdk packages via the sdkmanager command.
  You may want to add to your profile:
    'export ANDROID_SDK_ROOT=/usr/local/share/android-sdk'
  
  This operation may take up to 10 minutes depending on your internet connection.
  Please, be patient.
  
  ==&gt; Satisfying dependencies
  ==&gt; Downloading https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip
  Already downloaded: /Users/jhon/Library/Caches/Homebrew/Cask/android-sdk--3859397,26.0.1.zip
  ==&gt; Verifying checksum for Cask android-sdk
  ==&gt; Installing Cask android-sdk
  ==&gt; Warning: Failed to download any source lists!
  ==&gt; Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
  ==&gt; Warning: Failed to find package tools
  Error: Command failed to execute!
  
  ==&gt; Failed command:
  /usr/local/Caskroom/android-sdk/3859397,26.0.1/tools/bin/sdkmanager tools platform-tools build-tools;26.0.1
  
  ==&gt; Standard Output of failed command:
  
  
  ==&gt; Standard Error of failed command:
  jhon-MacBook-Pro-8:appNativescript jhon$ brew cask install android-idk --verbose --debug
  Error: Cask 'android-idk' is unavailable: No Cask with this name exists.
  Error: Install incomplete.
  /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
  /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
  /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:97:in `run_command'
  /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:167:in `run'
  /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
  /usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
  jhon-MacBook-Pro-8:appNativescript jhon$ brew cask install android-sdk
  ==&gt; Caveats
  We will install android-sdk-tools, platform-tools, and build-tools for you.
  You can control android sdk packages via the sdkmanager command.
  You may want to add to your profile:
    'export ANDROID_SDK_ROOT=/usr/local/share/android-sdk'
  
  This operation may take up to 10 minutes depending on your internet connection.
  Please, be patient.
  
  ==&gt; Satisfying dependencies
  ==&gt; Downloading https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip
  Already downloaded: /Users/jhon/Library/Caches/Homebrew/Cask/android-sdk--3859397,26.0.1.zip
  ==&gt; Verifying checksum for Cask android-sdk
  ==&gt; Installing Cask android-sdk
  ==&gt; Warning: Failed to download any source lists!
  ==&gt; Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
  ==&gt; Warning: Failed to find package tools
  Error: Command failed to execute!
  
  ==&gt; Failed command:
  /usr/local/Caskroom/android-sdk/3859397,26.0.1/tools/bin/sdkmanager tools platform-tools build-tools;26.0.1
  
  ==&gt; Standard Output of failed command:
  
  
  ==&gt; Standard Error of failed command:
  Warning: Failed to download any source lists!
  Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
  Warning: Failed to find package tools
  
  
  ==&gt; Exit status of failed command:
  #&lt;Process::Status: pid 35477 exit 1&gt;
  Error: Install incomplete.
  jhon-MacBook-Pro-8:appNatives
  </code></pre>