Solved

Android SDK Manager Failed to Execute

Posted on 2014-03-01
41
4,133 Views
Last Modified: 2014-09-03
I installed Eclipse and Android Studio.

Now I am installing the SDK Tools. I have both the SDK Manager.exe and AVD Manager.exe on the desktop as shortcuts.

When I clicked on the shortcut I get the message:

Failed to execute tools\android.bat:, error 2
The system cannot find the file specified.

It is looking for android.bat.

How can I fix this?

Thanks
0
Comment
Question by:Dovberman
  • 15
  • 14
  • 4
  • +1
41 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
You need to ensure that the directory containing that batch file is included in your PATH
0
 

Author Comment

by:Dovberman
Comment Utility
Please explain how.  Do you mean the environment variables from
Control Panel\System and Security\System ?
0
 

Author Comment

by:Dovberman
Comment Utility
Please explain how.  Do you mean setting the environment variables from
Control Panel->System and Security->System-> Advanced system settings ?
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Yes. Look in Windows Help for your version of Windows under 'Environment Variable'
0
 

Author Comment

by:Dovberman
Comment Utility
I know where the environment variable dialog is.

What are the settings I need?

Currently these are:

User variables for ComputerName
Variable Name:  JAVA_HOME
Variable value:  C:\Program Files\Android\android-sdk\tools

System variables
Path: C:\Program Files\Android\android-sdk\tools

Or are you referring to the SDK Manager Shortcut properties:

Target Location: android-sdk
Target: "C:\Program Files\Android\android-sdk\SDK Manager.exe"
Start in: "C:\Program Files\Android\android-sdk"

Thanks,
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
System variables
Path: C:\Program Files\Android\android-sdk\tools
That can't be PATH. That would contain several other things
0
 

Author Comment

by:Dovberman
Comment Utility
<<You need to ensure that the directory containing that batch file is included in your PATH>>

Can you tell me the steps or give me a link that describes how to do this?

Thanks,
EnvironVars.jpg
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Actually it looks like you have it now. Make sure you open a new command window (cmd.exe) once it's set
0
 

Author Comment

by:Dovberman
Comment Utility
I run the app from Eclipse.  What do I run in the command window?
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
OK, forget that last comment in that case
0
 

Author Comment

by:Dovberman
Comment Utility
I've requested that this question be deleted for the following reason:

None of the suggested solutions were workable.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
None of the suggested solutions were workable.

Sorry - you need to explain that, along with stating the current problem
0
 

Author Comment

by:Dovberman
Comment Utility
I've requested that this question be deleted for the following reason:

suggested solutions did not work.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Not an acceptable explanation i'm afraid
0
 

Author Comment

by:Dovberman
Comment Utility
I asked for details describing the steps to take to implement the suggestions.  Details or specific references were not given.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
On the contrary - you have posted a picture that actually shows you followed the advice i gave HERE
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Please give your recommendation for closing the question stating why and with references to comments along with how this would benefit the PAQ by keeping it.


Sure. I'm not over-bothered about points, but the comment to which i just linked ( http://www.experts-exchange.com/Programming/Languages/Java/Q_28377754.html#a39897399 )
 could be accepted. It's a generic solution to setting the PATH to extra dev tools. In this case, it's Android, but it could be anything. Therefore it's worth keeping
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 2

Expert Comment

by:eenookami
Comment Utility
I've requested that this question be deleted for the following reason:

As requested by Dovberman and no solution found
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
a. i took valuable time answering the question, and as i mentioned there's evidence that advice was followed
b. i took valuable time following your ( eenookami ) instructions regarding closing recommendations, which for some reason, you're now ignoring. I shall not bother next time
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Look at it from someone coming across it in the PAQ looking for a solution.
That's what i was doing - hence my closing comments.

The problem is probably down to the OP not putting in the correct path (it's not fully visible in the image shown BUT that image proves my advice was at least attempted) but the solution is generic and useful
0
 

Author Comment

by:Dovberman
Comment Utility
I followed the advice that was given. The original issue was unsolved.
0
 
LVL 2

Expert Comment

by:eenookami
Comment Utility
I've requested that this question be deleted for the following reason:

As indicated, the experts comments were helpful but have not solved the authors issue
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
I followed the advice that was given. The original issue was unsolved.

So what PATH have you got? Please post the output of

echo %PATH%

Open in new window

at the command line
0
 

Author Comment

by:Dovberman
Comment Utility
CEHJ:

Your suggestion >>You need to ensure that the directory containing that batch file is included in your PATH<< in ambiguous. PATH has several meanings. I attempted to solicit something specific that I could try.  No specific steps were offered.

You recent comment ,echo %Path%, applies to a UNIX or LINUX environment.

http://geekswithblogs.net/AskPaula/archive/2008/12/18/128035.aspx

You made many attempts which are appreciated, but did not resolve the issue.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
PATH has several meanings.
No, not spelled like that it doesn't. It has one meaning

You recent comment ,echo %Path%, applies to a UNIX or LINUX environment.
No, it applies to a Windows environment only  - which of course is plain to see is your environment
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
As for the link you just posted, you appear not to have read the title of the article:

How do I view/see the PATH in a windows environment?
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
CEHJ,

There is a related question regarding the setup of android for development.http://www.experts-exchange.com/Programming/Dev_Tools/Q_28371575.html

Dovberman,
I have a feeling you've downloaded all the components separately? Or did you download the bundle (http://developer.android.com/sdk/installing/bundle.html)?  I ask, because if you've downloaded the bundle then you just use the Eclipse plugin to install the SDK.  It has everything to get your started.
If you've downloaded everything separately then you're going to have to do all these bits and pieces, configuring everything when essentially it's done for you in the bundle.

Rob
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
The android site has very good steps in setting all this up.  Take the time to read it thoroughly. http://developer.android.com/sdk/installing/bundle.html
0
 

Author Comment

by:Dovberman
Comment Utility
I have done all this.
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
And still nothing?  Did you install the tools from within Eclipse because you've given every indication that you didn't
0
 

Author Comment

by:Dovberman
Comment Utility
Just give him the points. I spent over 20 hours on this issue.
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
Comment Utility
I don't want the points - I'm more interested in getting you an answer.  If you haven't got one and have given up or gone down a different path then request to delete the question.

I'm pursuing this as I've just recently done exactly the same thing and it's working for me.
0
 

Author Comment

by:Dovberman
Comment Utility
Did not work for me. My research shows that it has worked for a few people.
0
 

Author Closing Comment

by:Dovberman
Comment Utility
Thank you
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now