Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android-SDK package installation error although Eclipse & SDK manager are run as Administrator on Vista

I am running Windows Vista and have an error in my Android application which is presented by Eclipse as:

The container 'Android Dependencies' references non existing library 'C:\Program Files\Android\android-sdk\tools\support\annotations.jar'

CornBoyzTutorial Build Path Problem. I go to the 'C:\Program Files\Android\android-sdk\tools` folder to see that there is no support folder. The beginning of Eclipse presented me with This version of ADT requires Android SDK Tools 17 or above. Current revision is 16. Please update your DDK Tools to the latest version.

I have run Eclipse as Administrator and go to the Android SDK manager, to see that there is an update for the Rev.16 Android SDK Tools to Rev 19. I press for the installation of the packages and get the window message that the SDK Manager:failed to install, a folder failed to be moved, On Windows this typically means that a program is using that folder.. (eg anti-virus), ..close any running programs taht may be accessing the directory C:\Program Files\Android\android-sdk\tools`, When ready ... try again.

The console message is:

[2012-05-06 13:35:20 - SDK Manager] Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.

The Android SDK Manager Log message at the end is:

Done loading packages.
Preparing to install archives
Downloading Android SDK Tools, revision 19
Installing Android SDK Tools, revision 19
Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.
Done. Nothing was installed.

I have all anti-virus software turned off and no programs accessing this directory. I also ran the SDK manager from the Android folder directly as Administrator with the same error. I have also tried restarting Windows. Previous times when I update never showed this problem.

like image 997
Vass Avatar asked May 06 '12 12:05

Vass


People also ask

How do I fix Android SDK not found?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory. (C:\Users\..

Do I need to install Android SDK separately?

There's even an open Java Development Kit (JDK) included, so you no longer need to separately install the latest version separately. Installing Android Studio is just as simple and we have a guide to help you out here. Again, it is just a matter of downloading the installer and following the steps as prompted.

How manually install SDK tools?

On the PC, download and run the JDK installer, which is available here: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Install the Android SDK (software development kit): In your browser on the PC, open the Android SDK download page and click Download the SDK Tools ADT Bundle for Windows.


1 Answers

the Android SDK manager (it's an application you can run by itself, Eclipse is only framing it) is itself located in the tools directory (clarification: I looked on the linux version, but would guess it's the same on windows).

You could try to copy it elsewhere and run that, or manually download and unzip the tools package, but it might be simplest to just re-install the latest SDK from scratch.

like image 150
Chris Stratton Avatar answered Sep 19 '22 12:09

Chris Stratton