Reputation: 43
I'm trying to code an app for android and I ran into a problem with the sdk manager. When I try to run it in eclipse, it says "Failed to run android sdk manager. Check the Android Console View for Details." Then in the console it says:
[2013-01-30 21:27:45 - SDK Manager] Missing %s file in Android SDK.
[2013-01-30 21:27:45 - SDK Manager] android.bat
I reinstalled eclipse, the sdk and tried everything any other posts about the same problem but nothing works.
Upvotes: 2
Views: 11758
Reputation: 2021
Unzip your sdk zip somewhere, copy entire contents of tools directory, replace it with your actual sdk tools folder contents.
Restart eclipse if needed.
Upvotes: 0
Reputation: 5492
I was able to restore the missing items in File | New... quite easily by performing the following steps:
Switch to the Java perspective, either via the perspective switcher toolbar at the top right of the main Eclipse window, or via the Window | Open Perspective menu item.
Reset the perspective by either right-clicking on the Java perspective icon in the perspective switcher toolbar, or by clicking Window | Reset Perspective...
As to why they weren't there in the first place, the most likely cause would be that the ADT contributes various things to the Java perspective, and these changes don't take effect until the perspective is reset after installing the ADT. As an Eclipse plug-in developer I learned it the hard way, that changes to perspectives don't get picked up unless you explicitly reset them.
Upvotes: 2
Reputation: 13541
Ensure that your SDK has the android.bat file. By looking in the directory the SDK is in.
Upvotes: 0