NativeScript Advanced Setup: MacOS `brew install android-sdk` Error


#1

In attempting to install the Android development dependencies for NativeScript 2.5.4 on MacOS X 10.12, I get the following error when following the NativeScript Advanced Setup: MacOS instructions after the automated ruby script installation failed:

$ brew install android-sdk
Error: No available formula with the name "android-sdk" 
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
  brew tap caskroom/cask

According to this closed Homebrew issue on GitHub, the android-sdk formula is no longer supported.


#2

the new command is brew cask install android-sdk


#3

The team is aware of this and will have all install scripts updated prior to the 3.0 release


#4

Hello
i have some problem with Android install
so see my log trace
One day on google to find a soluce ! and nothing.

So happy to find the soluce because i found your system more useful as ionic so …
Thanks

imac-de-laurent:a-nativeApp laurentvignaux$ tns doctor --log trace
Loading extensions.
execFile: /usr/local/opt/android-sdk/platform-tools/adb "help"
Error while executing ‘/usr/local/opt/android-sdk/platform-tools/adb help’. Error is: spawn /usr/local/opt/android-sdk/platform-tools/adb ENOENT
Exec uname -a
stdout: Darwin imac-de-laurent.home 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

stderr:
Exec npm -v
stdout: 5.0.3

stderr:
spawn: java "-version"
Exec node-gyp -v
stdout:
stderr: /bin/sh: node-gyp: command not found

Exec xcodebuild -version
stdout: Xcode 8.3.3
Build version 8E3004b

stderr:
Exec gem which xcodeproj
stdout: /Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.5.0/lib/xcodeproj.rb

stderr:
Exec pod --version
stdout: 1.2.1

stderr:
Exec null version
stdout:
stderr: /bin/sh: null: command not found

spawn: /usr/local/opt/android-sdk/tools/emulator "-help"
The result of checking is Android Emulator installed is:

  • stdout:
  • stderr: spawn /usr/local/opt/android-sdk/tools/emulator ENOENT
    Exec mono --version
    stdout:
    stderr: /bin/sh: mono: command not found

Exec git --version
stdout: git version 2.11.0 (Apple Git-81)

stderr:
Exec gradle -v
stdout:

Gradle 4.0.1

Build time: 2017-07-07 14:02:41 UTC
Revision: 38e5dc0f772daecca1d2681885d3d85414eb6826

Groovy: 2.4.11
Ant: Apache Ant™ version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_131 (Oracle Corporation 25.131-b11)
OS: Mac OS X 10.12.5 x86_64

stderr:
Exec “/Library/Java/Home/bin/javac” -version
stdout:
stderr: javac 1.8.0_131

System information:
{ procInfo: ‘nativescript/3.1.2’,
platform: ‘darwin’,
os: ‘Darwin imac-de-laurent.home 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64\n’,
shell: ‘/bin/bash’,
dotNetVer: null,
procArch: ‘x64’,
nodeVer: ‘v6.10.3’,
npmVer: ‘5.0.3’,
javaVer: ‘1.8.0’,
nodeGypVer: null,
xcodeVer: ‘Xcode 8.3.3\nBuild version 8E3004b\n’,
xcodeprojGemLocation: ‘/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.5.0/lib/xcodeproj.rb\n’,
itunesInstalled: true,
cocoapodVer: ‘1.2.1’,
adbVer: null,
emulatorInstalled: false,
monoVer: null,
gitVer: ‘2.11.0 (Apple Git-81)’,
gradleVer: ‘4.0.1’,
javacVersion: ‘1.8.0_131’ }

stderr:
Using version 3.1.2.
Exec npm view tns-core-modules dist-tags --json
stdout: {
“latest”: “3.1.0”,
“next”: “3.2.0-2017-7-13-2”,
“rc”: “3.1.0”
}

stderr:
Using version 3.1.0.
Exec npm view tns-ios dist-tags --json
stdout: {
“latest”: “3.1.0”,
“next”: “3.2.0-2017-7-5-5”,
“rc”: “3.1.0”
}

stderr:
Using version 3.1.0.
Exec npm view tns-android dist-tags --json
stdout: {
“latest”: “3.1.1”,
“next”: “3.2.0-2017-7-13-1”,
“rc”: “3.1.0”
}

stderr:
Using version 3.1.1. `