Skip to content

Fresh install of NativeScript CLI using the Installer fails due to missing SDK (but claims it is OK) #2735

@NickIliev

Description

@NickIliev
Contributor

Using the installer on an absolutely fresh machine with newly installed Windows 10 is failing due to missing SDK. The installer is setting an ANDROID_HOME variable and also is bringing some files in C:\Users\niliev\AppData\Local\Android\sdk but in the same time the SDK is not installed and NativeScript CLI is failing to start.

Steps to reproduce:

  • fresh install of Windows 10 with Java JDK installed and JAVA_HOME set. (but no Android SDK installed0
  • using the installer to install Nodejs, Android SDK, and NativeScript.
  • all is installed according to the installer (very fast install...) but at the end, the Android SDK is missing on the PC. (some files are located in C:\Users\niliev\AppData\Local\Android\sdk but still the CLI is not working due to missing SDK)

Activity

dtopuzov

dtopuzov commented on Apr 24, 2017

@dtopuzov
Contributor

Same here, Java installed, Android not installed.
When run the installer it creates ANDROID_HOME variable and then it thinks Android is available, but it is not.

nikolavn

nikolavn commented on Apr 26, 2017

@nikolavn

I was not able to reproduce the issue both on a Windows 10 machine with nothing installed and on a Windows 10 with some application (not including the {N} prerequisites). I have downloaded the installer from the web site and also used the one available locally in OfficialReleases. I have performed 4-5 successful installations with this workflow:

  1. Download CLI Setup Installer
  2. Download and install jdk-8u131-windows-x64
  3. Set JAVA_HOME manually
  4. Start the CLI Setup Installer

It would be nice if you could send us logs from the failed installations (available under %temp% named NativeScript_CLI_Setup*). We have received error metrics from the failed installation of @dtopuzov but they are not very descriptive and also are showing Windows 8.1 as OS.

NickIliev

NickIliev commented on Apr 26, 2017

@NickIliev
ContributorAuthor

@nikolavn I've followed the exact same steps. (using jdk-8u131-windows-x64.exe and setting JAVA_HOME before running the installer)

Here are the logs created by the installed on that day
nativescrtip-cli-log-win10.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nikolavn@dtopuzov@NickIliev

        Issue actions

          Fresh install of NativeScript CLI using the Installer fails due to missing SDK (but claims it is OK) · Issue #2735 · NativeScript/nativescript-cli