When trying to install Android SDK, I found this error: Cannot find an overload for "Combine" and the argument count: "3". At line:101 char:40


#1

I follow the instruction in :

http://docs.nativescript.org/angular/start/quick-setup

with executing this command:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"

I found this error:

and this is my chocolate logs:

2017-08-28 15:22:55,294 1056 [WARN ] - Chocolatey timed out waiting for the command to finish. The timeout 
 specified (or the default value) was '2700' seconds. Perhaps try a 
 higher `--execution-timeout`? See `choco -h` for details.
2017-08-28 15:22:55,300 1056 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2017-08-28 15:22:56,198 1056 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2017-08-28 15:22:56,610 1056 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\android-sdk'
2017-08-28 15:22:56,613 1056 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\android-sdk\android-sdk.nupkg'
  with checksum '6F671221451BDD28A87D87A1C69498DA'
2017-08-28 15:22:56,615 1056 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\android-sdk\android-sdk.nuspec'
  with checksum '22555CDE2CB1759B6FE1C26380D60DDE'
2017-08-28 15:22:56,616 1056 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyInstall.ps1'
  with checksum 'EDB6F5846520DAFC7CD4EF034DE6F38C'
2017-08-28 15:22:56,617 1056 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'
  with checksum '096CDCC30D50C07DFD52A3D0B7DDB3EF'
2017-08-28 15:22:56,618 1056 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\android-sdk\tools\common.ps1'
  with checksum '4C2B10371F00BEB7D1B382B4BB3A2630'
2017-08-28 15:22:56,647 1056 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\android-sdk.25.2.3.1\.arguments".
2017-08-28 15:22:56,648 1056 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\android-sdk.25.2.3.1\.extra".
2017-08-28 15:22:56,649 1056 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\android-sdk.25.2.3.1\.version".
2017-08-28 15:22:56,649 1056 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\android-sdk.25.2.3.1\.sxs".
2017-08-28 15:22:56,650 1056 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\android-sdk.25.2.3.1\.pin".
2017-08-28 15:22:56,658 1056 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\android-sdk".
2017-08-28 15:22:56,676 1056 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2017-08-28 15:22:56,679 1056 [ERROR] - The install of android-sdk was NOT successful.
2017-08-28 15:22:56,682 1056 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyInstall.ps1'.
 See log for details.
2017-08-28 15:22:56,688 1056 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\android-sdk'
 to 'C:\ProgramData\chocolatey\lib-bad\android-sdk'
2017-08-28 15:22:58,745 1056 [DEBUG] - Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\android-sdk.25.2.3.1.nupkg".
2017-08-28 15:22:58,873 1056 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2017-08-28 15:22:58,874 1056 [INFO ] - 
2017-08-28 15:22:58,875 1056 [ERROR] - Failures
2017-08-28 15:22:58,878 1056 [ERROR] -  - android-sdk (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyInstall.ps1'.
 See log for details.
2017-08-28 15:22:58,911 1056 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2017-08-28 15:22:58,935 1056 [DEBUG] - Exiting with -1

I tried to google an search in this forum but I got nothing.
I’m new at mobile programming. So, any clue would be appreciated.

thank you everybody.


#2

Did you try using the Windows PowerShell instead?


#3

could you gave me the link or hint to convert the command into powershell format?


#4

I have the same issue, I used powershell but the same error arise.

Any hint?

Regards

Giuseppe


#5

If you are having difficulties installing NativeScript using the setup script, please doing the installation manually - https://docs.nativescript.org/start/quick-setup


#6

The error occours even with step-by-step process…


#7

You are using the powershell script by the looks of it. Are you sure you are following the manual steps? Perhaps you should just use the Android SDK manager provided by Android Studio


#8

Thanks Pete, I used Android SDK manager as you suggested. Now seems to work well