nativescript-cli: tns doctor can't find android.bat

When running tns doctor I get the following output.

`C:>tns doctor Unable to find “android.bat” executable file. Make sure you have set ANDROID_HOM E environment variable correctly. WARNING: The Android SDK is not installed or is not configured properly. You will not be able to build your projects for Android and run them in the nati ve emulator. To be able to build for Android and run apps in the native emulator, verify that you have installed the latest Android SDK and its dependencies as described in http://dev eloper.android.com/sdk/index.html#Requirements

TIP: To avoid setting up the necessary environment variables, you can use the ch ocolatey package manager to install the Android SDK and its dependencies.

NOTE: You can develop for iOS only on Mac OS X systems. To be able to work with iOS devices and projects, you need Mac OS X Mavericks or later.

Unable to find “android.bat” executable file. Make sure you have set ANDROID_HOM E environment variable correctly. Unable to find “android.bat” executable file. Make sure you have set ANDROID_HOM E environment variable correctly. Unable to find “android.bat” executable file. Make sure you have set ANDROID_HOM E environment variable correctly. Cannot find a compatible Android SDK for compilation. To be able to build for An droid, install Android SDK 22 or later. Run $ android to manage your Android SDK versions.

You need to have Android SDK 22 or later and the latest Local Maven repository f or Support Libraries installed on your system. Run $ android to manage the Local Maven repository for Support Libraries.

There seem to be issues with your configuration. ? Do you want to visit the official documentation? No ? Do you want to run the setup script? No Your components are up-to-date.

These warnings are just used to help the NativeScript maintainers with debugging if you file an issue. Please ignore them if everything you use NativeScript for is working fine.`

I’ve confirmed that my ANDROID_HOME environment variable is pointed appropriately, as well as my JAVA_HOME environment variable. I also have Android SDK 22 and 23 installed. Any help would be appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

Ouch! The “android” utility runs from a completelly different folder to ANDROID_HOME. Now im looking why.

I executed the android utility from the ANDROID_HOME folder and yes, i didn’t have the v23 version installed. Now is solved!

Thanks!