I have the same issue. I started android.bat from the command prompt. Since android.bat is in the directory that is reported to be locked, my command prompt is holding a lock to it when starting android.bat.... not very handy...
On Oct 27, 7:36 pm, Xavier Ducrohet <x...@android.com> wrote: > Hi, > > the issue is with Windows putting locks on files/folders. For instance > if you have a file explorer opened on the folder being updated (e.g. > the docs folder), it'll prevent other programs from modifying the > files/folders. > > If you have problem using it from eclipse you can always use > SDK/tools/android.bat which provide you with the same UI. > > Which version of Eclipse are you using? I'll double-check that Eclipse > doesn't open/lock some files in the documentation. > > Xav > > On Tue, Oct 27, 2009 at 2:31 PM, Jim Showalter > > > > > > <jamesleeshowal...@gmail.com> wrote: > > Followed the instructions in > >http://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 belockingthe 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 belockingthe 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) > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---