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.

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

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.

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.

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.

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”.

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

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

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

Comments
ernie
01/11/2010 – 11:56 pmGreat tips. I was wondering if my latest updates were installed properly.
Phil
01/15/2010 – 5:22 amVery helpful. You are a great instructor. Look forward to your next tutorial video. Hopefully soon!!
mike
02/24/2010 – 5:57 amStill wouldn’t work even after forcing http getting permission denied error.
Bruce
05/19/2010 – 3:58 pmVery helpful. You are a great instructor. Look forward to your next tutorial video. Hopefully soon!!