Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!

Can't Install Android platforms on Android SDK

Christopher Gonzales
Greenhorn
Posts: 5
I’m new to programming, so i’m sorry if this one is a dumb post. I’ve just installed Eclipse 3.5, the latest jdk, the ADT plugin and developer tools, and the Android SDK. When I try to download the available packages, I get the following message:

“Done. Nothing was installed.

File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\docs-Honeycomb_pre_r01-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-3.0_pre_r01-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.3.1_r02-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.2_r02-windows.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.1_r02-windows.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-1.6_r03-windows.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-1.5_r04-windows.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-Honeycomb_pre_r01-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-2.3_r01-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-2.2_r01-linux.zip (Access is denied)
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-2.1_r01-linux.zip (Access is denied)”

I have downloaded everything the developer.android.com website requires. I am wondering if these messages, specifically “access is denied” is due to system/admin restrictions on certain folders… Could somebody please help me? Thank you in advance!

-Chris

Campbell Ritchie
Sheriff
Posts: 48981
60
If you are new to programming you probably won't need Android for a bit. You should also not use Eclipse at this stage. Get a decent text editor (eg Notepad2, Notepad++, jEdit) and learn to use the command line before using Eclipse.

But, I agree, those error messages do look like admin restrictions.

Flash Bazbo
Greenhorn
Posts: 1
• 2
For Vista/Win 7, right click on the SDK/AVD Manager shortcut and click "Run as Administrator"

Peter Johnson
author
Bartender
Posts: 5852
7
• 2
Move everything (Eclipse, Andorid SDK) out of the Program Files folder. That folder is protected and weird things can happen if you don't know all of the nuances of how Vista and Win 7 handle that folder. I have my Eclipse and Android SDK in c:\opt\android.

James Elsey
Ranch Hand
Posts: 228
Agree with what Peter says.

I have the following structure and it works quite well

c:\development\tools (sdks etc here)
c:\development\projects\<project_name> (code here)

Then you don't have to get tangled up with permissions in Program files

Jorge Abascal
Greenhorn
Posts: 1
• 2
Solution:
1) Go to C:\Program Files\Android\android-sdk-windows
2) PROPERTIES on "SDK Manager"
3) Click on "Compatibility"
4) Enable "Run this program as Administrator"
5) OK
6) Run again. It will work.

(I'm spanish, i've tried to translate all the process, sorry for the mistakes)
Cheers!

Seyi Babs
Greenhorn
Posts: 1
I am running Windows 7 on my computer and I had same problem and struggled with this for some time and I couldn't get it to work. I tried to run in compatibility mode as Administrator to no avail. I eventually moved the Andriod SDK outside of the Programs files directory to the c:\Andriod\. It worked with any further hassle.

Rehan Zahoor
Ranch Hand
Posts: 83
Christopher Gonzales! I was facing same problem while working behind a firewall. There is some configuration options i.e. you may use http instead of https in the window that appears for downloads when you click on download now. Changing to http worked for me.

mack jackson
Greenhorn
Posts: 2
James Elsey wrote:Agree with what Peter says.

I have the following structure and it works quite well

c:\development\tools (sdks etc here)
c:\development\projects\<project_name> (code here)

Then you don't have to get tangled up with permissions in Program files

Its great information. Thanks James