Skip to content

Android SDK is not installed or is not configured properly, environment looks ok. #1813

@krystan

Description

@krystan

First of all, I am very new to Nativescript. I am in the process of trying to set it up on windows 10. I have all the tools installed as far as I can tell and have made sure my android environment is setup. When I type android at the cli I get the sdk manager and have them installed (sdk build tools etc).

Java is at version 1.7.0_55 on my box and that seems fine. What is not fine is that Nativescript insists my ANDROID_HOME is not set or is invalid.

I have run a doctor script which I include (attached)
log.txt

I looked at the first error which was adb help and I ran that command directly from the same shell I got the following output from adb.exe

adbout.txt

The reason I am filing this issue is because I receive an errror when trying to add a platform using

tns platform add android

When I issue this command I get the following message:

The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.

This appears not to be the case. And so I am filing an issue as I cannot add the android platform to my app.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions