Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old January 9th, 2010, 01:57 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot Apply SDK location in preferences in Eclipse

Hello,

Im trying to install the SDK, so I downloaded and installed eclipse and the SDK, and I installed the ADT plugin.

But now I cannot load my location of the sdk in the preferences window in Eclipse.

Im using windows Vista and Eclipse Ganymede

I hope you can help me
Attached Images
File Type: jpg Android preferences.jpg (99.7 KB, 28 views)

Advertisements
knetter3 is offline  
Last edited by knetter3; January 9th, 2010 at 02:01 PM.
Reply With Quote
sponsored links
Old January 9th, 2010, 04:23 PM   #2 (permalink)
Member
 
Join Date: Sep 2009
Location: Birmingham, UK
Posts: 148
 
Device(s): G1 (Developer model), HTC Tattoo, Nexus One.
Carrier: Not Provided

Thanks: 1
Thanked 26 Times in 22 Posts
Default

Hi knetter3 ,

You need to point it at the right folder in the SDK.

The path you specify should have these other folders under it:
  • add-ons
  • docs
  • platforms
  • tools

(Based on the 1.5 SDK I'm using)

A bit of trial & error will usually find the right folder quite quickly.
Keep choosing a different one until the preferences dialog shows some targets.

Mark
markb is offline  
Reply With Quote
Old January 9th, 2010, 04:43 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, but unfortunately that's not working, because when I do that, I get an error: "Could not find folder 'tools' inside ...(map I had chosen)"

So you have to give the root location of the SDK. But when I do that and I click on apply, I see nothing happen. :S
knetter3 is offline  
Reply With Quote
Old January 9th, 2010, 04:59 PM   #4 (permalink)
Member
 
Join Date: Sep 2009
Location: Birmingham, UK
Posts: 148
 
Device(s): G1 (Developer model), HTC Tattoo, Nexus One.
Carrier: Not Provided

Thanks: 1
Thanked 26 Times in 22 Posts
Default

Hi,

I'm a bit out of date and am still using the 1.5 SDK.

I just downloaded the latest SDK for windows so I can see what you're seeing.
(I can't use it directly, as I'm using Linux)

It looks like things have changed a bit! And my previous post should probably be ignored.

There's a read-me file in the SDK, and it starts with this:

Code:
Welcome to the Android SDK!

The Android SDK archive now only contains the tools. It no longer comes
populated with a specific Android platform or Google add-on. Instead you
use the SDK Manager to install or update SDK components such as platforms,
tools, add-ons, and documentation.

In order to start developing applications, you must install at least one
version of the Android platform using the SDK Manager.
...
I haven't used the SDK Manager myself yet, so I'll have to do some reading up.
(But I'm quite happy with my SDK as it is, so don't want to use the latest just yet.)

I imagine that might have something to do with the problem you're seeing.
I probably can't help much until I use the SDK manager myself. Sorry.

Mark
markb is offline  
Reply With Quote
Old January 10th, 2010, 11:55 AM   #5 (permalink)
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Droid
Carrier: Not Provided

Thanks: 0
Thanked 4 Times in 4 Posts
Default

Open a command prompt, navigate to your sdk location \ tools directory.

Run:

android list target

^^ this should produce a list of targets that the sdk has installed. If you have no targets installed you need to run tools\android and install / update the packages for the build targets you want to develop against.
KeithG is offline  
Reply With Quote
Old January 10th, 2010, 03:24 PM   #6 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jan 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks, but when I trie to update it gives an error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.

???

Edit: I think I got it, it's now downloading (i changed it to http in settings)

Thanks, that did the trick!
knetter3 is offline  
Last edited by knetter3; January 10th, 2010 at 04:56 PM.
Reply With Quote
Old February 11th, 2011, 07:02 AM   #7 (permalink)
New Member
 
Join Date: Feb 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

on eclipse:

window > preferences > Android > Browse ...


find:

c:\Program Files\Android\Android-sdk-windows

click Apply

DONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!
efdeel is offline  
Reply With Quote
Old April 7th, 2011, 07:05 PM   #8 (permalink)
New Member
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Same problem using Windows 7 x64. The default installation directory for the Android SDK is "C:\Users\YourUserName\AppData\Local\Android\andro id-sdk\"
Put that in the "SDK Location" field without the quotes and it will detect in a few moments.
Arbutus is offline  
Reply With Quote
Old April 8th, 2011, 09:46 PM   #9 (permalink)
New Member
 
Join Date: Apr 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, try this. It worked for me after pulling my hair. I have a Mac and the folder name was:

blahblahblah/android-sdk-mac_x86

I removed the "x" and it worked! So rename the folder name to:

blahblahblah/android-sdk-mac_86

Joe
www.hourdrinks.com
thegiants2008 is offline  
Reply With Quote
Old April 10th, 2012, 11:38 PM   #10 (permalink)
New Member
 
Join Date: Apr 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Cry

pls help me out...i tried all ur method but still...am pulling my hairs pls help....am windows user
am not geettin target even i put \ or any above methods
mdsaleh is offline  
Reply With Quote
sponsored links
Old May 17th, 2012, 03:43 AM   #11 (permalink)
New Member
 
Join Date: May 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

What I noticed that even though I was copying+pasting the correct directory, it still wouldn't accept it. But when I hit "Browse" and re-picked the same location it finally took it!
erusa is offline  
Reply With Quote
Old December 18th, 2012, 10:02 AM   #12 (permalink)
New Member
 
Join Date: Dec 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Checks \tools naming convention

I was getting the same error until I realized Eclipse was looking for \tools and my folder was named \platform-tools. Once I renamed the folder to \tools, I was able to apply all my targets.
qaMobileTester is offline  
Reply With Quote
Old December 19th, 2012, 08:36 AM   #13 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

You need to make sure you have the latest version of the sdk,as well as the latest version of the eclipse ADT plugin
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:58 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.