aspose file tools*
The moose likes Android and the fly likes Can't Install Android platforms on Android SDK Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Can Watch "Can New topic
Author

Can't Install Android platforms on Android SDK

Christopher Gonzales
Greenhorn

Joined: Nov 29, 2010
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.

Downloading Documentation for Android ‘Honeycomb’ Preview SDK, revision 1
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\docs-Honeycomb_pre_r01-linux.zip (Access is denied)
Downloading SDK Platform Android Honeycomb Preview, revision 1
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-3.0_pre_r01-linux.zip (Access is denied)
Downloading SDK Platform Android 2.3.1, API 9, revision 2
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.3.1_r02-linux.zip (Access is denied)
Downloading SDK Platform Android 2.2, API 8, revision 2
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.2_r02-windows.zip (Access is denied)
Downloading SDK Platform Android 2.1, API 7, revision 2
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-2.1_r02-windows.zip (Access is denied)
Downloading SDK Platform Android 1.6, API 4, revision 3
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-1.6_r03-windows.zip (Access is denied)
Downloading SDK Platform Android 1.5, API 3, revision 4
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\android-1.5_r04-windows.zip (Access is denied)
Downloading Samples for SDK API Honeycomb Preview, revision 1
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-Honeycomb_pre_r01-linux.zip (Access is denied)
Downloading Samples for SDK API 9, revision 1
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-2.3_r01-linux.zip (Access is denied)
Downloading Samples for SDK API 8, revision 1
File not found: c:\Program Files (x86)\Android\android-sdk-windows\temp\samples-2.2_r01-linux.zip (Access is denied)
Downloading Samples for SDK API 7, revision 1
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

Joined: Oct 13, 2005
Posts: 38902
    
  23
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.

Anybody else with more information, please post here.
Flash Bazbo
Greenhorn

Joined: Feb 08, 2011
Posts: 1
For Vista/Win 7, right click on the SDK/AVD Manager shortcut and click "Run as Administrator"
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

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.


JBoss In Action
James Elsey
Ranch Hand

Joined: Dec 21, 2007
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


Kind Regards, James. OCPJP 1.6 || My SCJP / OCJCP Study Notes
Interested in : SCJP, Google App Engine, Stripes, Android;|| My Bite-Size SCJP Study Blog
Jorge Abascal
Greenhorn

Joined: Feb 23, 2011
Posts: 1
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

Joined: Sep 15, 2014
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

Joined: Jun 19, 2012
Posts: 31

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.


**OCP, Java SE 6 Programmer**OCM, Java SE 6 Developer**
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't Install Android platforms on Android SDK