What I did was to run the AVD Manager from outside of Eclipse.  Using
AVG Anti-Virus, turning it off, didn't work for me when trying to
update from within Eclipse.

1) Open a command prompt.

2) Go to the directory that the android sdk is installed at, and then
its tools subdirectory.  For me it was this location...

C:\Users\Public\android-sdk-windows\tools\

3) Run Android.bat.  The first time I tried to run this, it didn't
work, and complained about not finding the "x86_64" subdirectory (I'm
running Windows 7 x64).  I located the "x86_64" subdirectory as a
subdirectory of "tools", and then set the environment variable like
this...

set ANDROID_SWT=C:\Users\Public\android-sdk-windows\tools\lib\x86_64

... then I reran Android.bat.

4) At this point, update just as you would if you were running the AVD
Manager from within Eclipse.

The above worked like a charm for me, where turning off anit-virus
software did not.

Good luck!

On Oct 27, 1:29 pm, Jim Showalter <[email protected]> wrote:
> Followed the instructions 
> inhttp://developer.android.com/sdk/adding-components.htmlfor adding 2.0 as
> components to an existing 1.6 SDK, from within Eclipse.
>
> It didn't work. Not by a long shot. Instead, it got partway through and then
> said that C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 couldn't be
> copied because of a lock, and similarly for PlatformPackage.new01.
>
> It said to shut down running programs, but the only program running was
> Eclipse, which was needed to do the upgrade.
>
> The cancel button was disabled, and the close box didn't work. Shutting down
> Eclipse killed it, but left C:\android-sdk-windows-1.6_r1 in a corrupted
> state. Restarting Eclipse showed the Android projects with errors, no SDK,
> and a disabled Android SDK and AVD Manager (which means no ability to rerun
> the install).
>
> Shutting down Eclipse, renaming the corrupted SDK directory, unzipping 1.6
> again into C:, and restarting Eclipse made it as if nothing had ever
> happened, which is good. But it is not possible to complete the install from
> Eclipse, which is bad.
>
> The dialog says:
>
> Failed to rename directory
> C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
> C:\android-sdk-windows-1.6_r1\docs
> -= Warning ! =-
> A folder failed to be renamed or moved. On Windows this typically means that
> a program is using that folder (for example Windows Explorer.) Please close
> all running programs that may be locking the directory
> 'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
>
> Failed to rename directory
> C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01 to
> C:\android-sdk-windows-1.6_r1\docs
> -= Warning ! =-
> A folder failed to be renamed or moved. On Windows this typically means that
> a program is using that folder (for example Windows Explorer.) Please close
> all running programs that may be locking the directory
> 'C:\android-sdk-windows-1.6_r1\temp\DocPackage.new01' and try again.
> Installed: SDK Platform Android 2.0, API 5 (tools rev: 3)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to