question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tns doctor can't find android.bat

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
jmoleirocommented, Jul 12, 2016

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!

0reactions
rosen-vladimirovcommented, Jul 11, 2016

@jmoleiro from the log you’ve sent I see:

Directories found in /Users/jmoleiro/Library/Android/sdk/build-tools are 21.1.2, 22.0.1
Versions found in /Users/jmoleiro/Library/Android/sdk/build-tools are 21.1.2, 22.0.1

Can you verify your ANDROID_HOME environment variable points to the directory from your last screenshot?

Read more comments on GitHub >

github_iconTop Results From Across the Web

tns doctor saying that "abd from the Android SDK is not installed"
I'm having a bit of an issue setting up my local environment to work with Android SDK and Nativescript. ... Been struggling with...
Read more >
Android SDK Can't Find android.bat?
I got it: we need to copy those SDK Manager.exe and AVD Manager.exe to the SDK root folder, I needed to copy them...
Read more >
MiLB.com Mobile App | MiLB First Pitch
Watch more than 6,500 games via your MiLB.TV subscription, on your Android device, with more than 95 percent of games now available in...
Read more >
GameChanger
One app for every team ; Baseball. Advanced scorekeeping, 150+ season stats, batting and pitching spray charts, pitch count tracking ; Soccer. Basic...
Read more >
FAQ — The Ripken Experience
Tournament Information · Can I pre-order my Tournament Tee? · When will my tournament schedule be released? · What are the tournament rules?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found