xtensivearts - One Leap Ahead
How to Solve Update Errors

How to Solve Update Errors

Posted 12/27/2009 - 1:00 am by Mathias Reisch

If you are on a Windows machine and you are updating your installation of the Android SDK through the AVD Manager in Eclipse, you may have come across an annoying error, that says the installation failed because a folder failed to be renamed or moved. This happens probably because Eclipse sort of locks the folder of your Android installation and thus no other application (in this case the AVD Manager) gains access to it. Here is a quick and easy solution for the problem.

This Is What Happens

Ok, so I don’t know if all people get this error but sure thing is I did and I saw a lot of people who also were struggling with this. So, let me show you how the error looks like. I opend the Android SDK and AVD Manager by going to Windows -> Android SDK and AVD Manager and clicked on the Available Packages section. In my case the error appeared during the installation of SDK Platform Android 1.6, API 4, revision 2.

update-error1

I clicked on Install Selected, accepted everything and began the installation. After downloading the package I got this error.

update-error2

So it seemed that Eclipse or some component of the Android SDK locks my installation folder. Pretty nasty, especially since you need to run Eclipse if you want to access the Android SDK and AVD Manager, right? Wrong!

This Is How You Do It

On Windows XP open your start menu and choose “Run…”. Enter “cmd” into the textfield and hit ENTER. On Windows Vista and Windows 7 simply enter “cmd” into the search field at the bottom of the start menu and hit CTRL-SHIFT-ENTER. An UAC dialog might pop up. Simply press Ok on that one. This opens the console window with administrative privileges. In your new console window type “android” and hit enter. Important: If you do not have the Android tools directory in your path, you have to browse to that directory and run “android” from there.

update-error3

Looks familiar? You have just started the Android SDK and AVD Manager without the need to run Eclipse. Now go the Available Packages section and proceed as usual.

update-error4

Great, But It Still Does Not Work

If you click on the checkbox next to the repository.xml you may in some cases get another annoying error.

update-error5

So the Android SDK and AVD Manager failed to fetch the URL of the repository. Well, don’t worry as this one is also very easy to fix. Just go to the Settings section and check the option “Force https://… sources to be fetched using http://”. Don’t forget to click on “Save & Apply”.

update-error6

After that just close and restart the application. Now if you click on the checkbox next to repository.xml everything should be working fine.

update-error7

Proceed as usual and you should finally see something like this.

update-error8

You can then close the application and the console window. That’s it, you’re done! I hope you found this article useful.

Related posts:
  1. Android SDK 1.6 (a.k.a Donut): How to Update
  2. How to Update Your Development Environment to Android SDK 2.0
  3. Episode #2 – Create A New Project And Run It
  4. Episode #1 – Getting Started!
  5. New Android SDK: The Donut Has Arrived!

Why Not Leave a Comment?

Name:*
E-Mail:*
Website:
Comment:*

Comments

ernie

01/11/2010 – 11:56 pm

Great tips. I was wondering if my latest updates were installed properly.

Phil

01/15/2010 – 5:22 am

Very helpful. You are a great instructor. Look forward to your next tutorial video. Hopefully soon!!

mike

02/24/2010 – 5:57 am

Still wouldn’t work even after forcing http getting permission denied error.

Bruce

05/19/2010 – 3:58 pm

Very helpful. You are a great instructor. Look forward to your next tutorial video. Hopefully soon!!