-
-
Notifications
You must be signed in to change notification settings - Fork 197
"tns platform add android" throwing error #1564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @DeepakDonde , Could you give it a try and inform us if this helps? |
Hello @rosen-vladimirov , I have already tried installing new SDK and run it again but still its not working. Please can you check following are my system configurations. Following are my Environmental Variables - Also, when I run android.bat file on cmd, the sdk manager open as it should be. So I am wondering why it is not able to fine that "android.bat" file .. :| Thanks.. |
Hi @DeepakDonde |
Hi @rosen-vladimirov I also tried calling %ANDROID_HOME%\tools\android from my terminal as per your suggestion, It works perfectly fine !! As per the documentation, I have run "tns doctor" on cmd, I am getting following : Any other command that I can run and know where am I making mistake ? |
Hello @rosen-vladimirov , Now I have changed my directory name and it does not give that damn error anymore and platform android gets created properly. :) Thanks for all your time and help ..!! |
@DeepakDonde , thanks for sharing the problem and the fix you've found. Really weird behavior of android.bat file. |
I am having the same issue. Here is a screenshot of my environment variables. (see below) The error message is: Unable to find "android.bat" executable file. Make sure you have set ANDROID_HOME environment variable correctly. TIP: To avoid setting up the necessary environment variables, you can use the chocolatey package manager to install the Android SDK and its dependencies. NOTE: You can develop for iOS only on Mac OS X systems. |
I am getting so
log.txt
me issue while running "tns platform add android" command.
Every time when I run above command on cmd, I get following error -
"Unable to find "android.bat" executable file. Make sure you have set ANDROID_HOME environment variable correctly.(this is in red color on cmd).
Sending exception report (press Ctrl+C to stop)....... "
Can you please help me resolving this ?
I have attached log trace for your reference.
Please help.
The text was updated successfully, but these errors were encountered: