installing eclipse and the android sdk (windows xp) - android forums

31
AndroidForums.com Phandroid.com Videos About Advertise Tip Us Contact Us Android Forums > Android Development > Application Development > Developer 101 Installing Eclipse and the Android SDK (Windows XP) User Name User Name Remember Me? Password Log in Register Premium All Albums Social Groups Chat Live! Developer 101 101 Tutorials Page 1 of 2 1 2 > LinkBack Thread Tools 12-02-2008, 11:36 AM #1 (permalink) devolio Member Join Date: Oct 2008 Location: Michigan Posts: 339 Device(s): Thanks: 0 Thanked 22 Times in 5 Posts Installing Eclipse and the Android SDK (Windows XP) The first thing we need to do is download all of the needed files. First up, the Android SDK. You can download it from http://code.google.c om/android/download.html Now, let's download Java. Open up http://developers.sun.com/downloads in your browser. Click the expand button [+] for Java SE and click on Java SE (JDK) 6. It will take you to a page with more choices. We're going to want JDK 6 Update 10 with Java EE. Select Windows, and the Language you want, and you can finally download the JDK. 3/2/2011 Installing Eclipse and the Android SDK (… androidforums.com/…/2314-installing-e… 1/31 Generated by Foxit PDF Creator © Foxit Software http://www.foxitsoftware.com For evaluation only.

Upload: ommatha

Post on 02-Dec-2014

522 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

AndroidForums.com Phandroid.com Videos About Advertise Tip Us Contact Us

Android Forums > Android Development > Application Development > Developer 101

Installing Eclipse and the Android SDK (Windows XP)

User Name User Name Remember Me?

Password Log in

Register Premium All Albums Social Groups Chat Live!

Developer 101 101 Tutorials

Page 1 of 2 1 2 >

LinkBack Thread Tools

12-02-2008, 11:36 AM #1 (permalink)

devolioMember

Join Date: Oct 2008Location: MichiganPosts: 339 Device(s):Thanks: 0Thanked 22 Times in 5 Posts

Installing Eclipse and the Android SDK (Windows XP)

The first thing we need to do is download all of the needed files. First up, the Android SDK. You candownload it from http://code.google.com/android/download.html

Now, let's download Java. Open up http://developers.sun.com/downloads in your browser. Click the expandbutton [+] for Java SE and click on Java SE (JDK) 6. It will take you to a page with more choices. We're

going to want JDK 6 Update 10 with Java EE. Select Windows, and the Language you want, and you can

finally download the JDK.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 1/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 2: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last but not least, we're going to need Eclipse. Head over to http://www.eclipse.org/downloads/. The

version we want is Eclipse IDE for Java Developers. The JEE version will work as well.

Now, we've downloaded just about everything we're going to need.

Let's go ahead and fire up the JDK installer.

Click next, agree to the license, next again (installing to C:\Sun\SDK), and we'll be prompted to set theadmin password.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 2/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 3: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Enter a password and click next. Now we'll be presented with the installation options. You can leave thesedefault and click next. Finally, it will let you install what we've chosen.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 3/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 4: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Click install now.

Time to wait. Grab something to drink (or eat).

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 4/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 5: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

At the end of the install we'll be prompted to sign in (if registered.) You can sign up if you'd like, or log in ifyou've already signed up. You can also skip the whole process if you want.

Tah dah, that's finished. You can click Finish, skipping starting the server (we won't need it.)

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 5/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 6: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Now we can get started on the fun stuff. Create a new folder on your C: Drive (or whatever you use,) andname it android. Open up the Android SDK zip, and go into the main folder. Copy all of the files from theAndroid SDK zip into C:\android.

We've now got to set the all important Path variable. Right click on My Computer and click Advanced,

Environmental Variables (or Start -> Settings -> Control Panel -> System -> Advanced ->Environmental Variables.)

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 6/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 7: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

In the Environmental Variables window, in the System Variables pane, scroll down to Path. Double click on it

to edit it. Scroll all the way to the right side of the value, and add ";c:\android\tools" (or the absolute pathto your tools folder,) to the end of it, as shown below.

Click OK in all of the windows, and that's good to go.

Time for Eclipse. Create a new folder on your C: Drive (or whatever you use,) and name it eclipse. Just likebefore, open up the Eclipse zip, go into the main folder, and copy all of the files into C:\eclipse.

Almost there! Go ahead and make a shortcut to Eclipse on your Desktop (if you want.) Start up Eclipse.

It will prompt you to choose a workspace location.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 7/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 8: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

This is where all of your project files will be stored. Set it where you want, and click OK.

Once Eclipse is started up, we can add the ADT plugin. In the menu, Help -> Software Updates.

Click on the Available Software tab at the top.

Click on Add Site. For the URL, we're going to use http://dl-ssl.google.com/android/eclipse.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 8/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 9: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Click OK. It may tell you that there was no repository found at https://dl-ssl.google.com/android/eclipse.That's fine, Click OK.

Expand the tree for http://dl-ssl.google.com/android/eclipse (note http, not https.) Click the checkbox nextto the tree expander, and it will select all of the tools.

Click Install. Eclipse will go ahead and calculate the installation stuff it needs, and download the files.

Click finish, and it will install them.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 9/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 10: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Eclipse will prompt you to restart, click Yes. Eclipse will restart, and whalah, you're finished!

To run a quick test and make sure everything is working properly, go to File -> New -> Project. ExpandAndroid, click on Android Project, and click Next.

Now we'll have to fill in our project information. Because this is a test run, we'll call the project testrun. Forthe package name, we'll use com.android.test. And last but not least, the activity name will be test.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 10/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 11: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Click Finish.

Eclipse will crunch on that for a second, and open the project in the left pane. Expand the main tree to see

the file structure of a default new project. The last thing we need to do before we run our test application isset up a run configuration. In the menu, go to Run -> Run Configurations...

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 11/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 12: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Double click on Android Application and it will create a new configuration. Give the configuration a name, andclick browse for the project.

Choose your project, click OK. Now click Apply, then Run.

You'll notice the bottom pane switches over to Console. This will let you know what's going on with theemulator. After a few seconds, the emulator will start up.

Enter topic to look up

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 12/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 13: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Note that the first run will take *much* longer than usual to start up, as it's setting up the Android OS whileit starts up for the first time. Depending on the specs of your computer, it can take anywhere from a fewminutes to over half an hour.

After awhile, you'll arrive at the starting screen.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 13/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 14: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Click on Menu to unlock the screen. Usually, you'll get a few errors as things start up and can't be started.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 14/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 15: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by devolio; 12-07-2008 at 05:45 AM. Reason: Boldedimportant stuff

I usually just click wait. In the console, you'll see it install, and then start up your application.

And with that, it's time for you to dive into the code and start making your application.

__________________GuidesFAQ | Rooting | Installing SDK/Eclipse

My StuffTwitter | Apper | Yz | Yz Donation

The Following 15 UsersSay Thank You todevolio For This Useful

Post:

Christophe2010 (05-18-2010), dilirum (10-08-2010), doad13 (06-07-2010), Dragosi (04-09-2010),Dvoireh (12-15-2010), ExSaint (11-04-2010), Gryphin81 (04-28-2010), Howie (05-16-2010), iAuthorize (06-07-2010), jisoo411 (05-22-2010), pbkrug (05-16-2010), PC Master (08-09-2010), R3vel (06-08-2010),

RandyB1968 (12-03-2010), xxyx (07-23-2010)

Sponsors

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 15/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 16: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by vinnie215; 03-05-2009 at 09:10 PM.

01-17-2009, 09:13 AM #2 (permalink)

routhusannyNew Member

Join Date: Jan 2009Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

error in installing android

Hi,

thats a nice presentation by you for installing android on windows xp. It is very helpful to me. after settingthe path, when i tried to start eclipse a error window flashed on the screen saying that " a java Runtimeenvironment or jdk must be available inorder to run eclipse. No java virtal machine was found after searching

the following locations c:\eclipse\jre\bin\javaw.exe javaw.exe in your currebt path". I tried changing paths,but i did not succeed. I have been using windows xp 2002 version sevice pack 2. Please tell me solution.Thanks in advance.

02-28-2009, 05:48 AM #3 (permalink)

Denis.BeuriveNew Member Join Date: Feb 2009Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Hello!

Thank you very much for these explanations!

Denis

03-04-2009, 05:38 PM #4 (permalink)

kwtyNew Member Join Date: Mar 2009Posts: 9 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

software update

hi ,when i add site http://dl-ssl.google.com/android/ec lipse it said no repository and i clicked ok but when i triedto expand the tree of the site it said again there is no repository and it didn't expanded so please tell me

what i have to do.

thanks

03-04-2009, 08:05 PM #5 (permalink)

devolioMember

Join Date: Oct 2008Location: MichiganPosts: 339 Device(s):Thanks: 0Thanked 22 Times in 5 Posts

Try changing the http to https and see if you have any better luck. It may just have been down for awhile.

03-05-2009, 08:50 PM #6 (permalink)

vinnie215New Member Join Date: Mar 2009Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

were do i get Eclipse from? thank you edit: evermind i found it lol

03-05-2009, 09:02 PM #7 (permalink)

noonehereyet

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 16/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 17: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

noonehereyetModerator

Join Date: Nov 2008Location: LA, CaliforniaPosts: 3,067 Device(s): G1, C liq, VibrantThanks: 1Thanked 40 Times in 32 Posts

Quote:

Originally Posted by vinnie215 were do i get Eclipse from? thank you

http://www.eclipse.org/downloads/

03-15-2009, 09:42 AM #8 (permalink)

jusutusJunior Member Join Date: Jan 2009Posts: 17 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Why do I keep getting

[2009-03-15 15:39:32 - testrun] getFileType got errno=22 on '(null)'[2009-03-15 15:39:32 - testrun] ERROR: output file '(null)' exists but is not regular file

[2009-03-15 15:39:33 - testrun] getFileType got errno=22 on '(null)'[2009-03-15 15:39:33 - testrun] ERROR: output file '(null)' exists but is not regular file

after I've created a new project? I'm using Eclipse 3.4.2.

04-29-2009, 09:56 PM #9 (permalink)

FortKnoxJunior Member Join Date: Nov 2008Posts: 74 Device(s):Thanks: 3Thanked 0 Times in 0 Posts

Thanks for the tutorial. Haven't tried it yet, but it looks very thorough. I'm still in the Developer 100 stage of

learning how to develop for Android (I was a java developer by trade for 5 years, a lifetime ago). I'm verysorry if these questions have already been answered elsewhere, I just didn't find them, but if you could postthe URL, many much thanks. Way more basic questions than you address:

-do I need a separate piece of hardware than the basic T-Mobile G1 phone I already have (i.e. a "developerphone")?

-so if I get the Android SDK (I already use Eclipse), is it possible to get my in-progress application onto myphone for testing without putting it out in the Market? Or is the emulator designed to eliminate that need?

-what is the path to getting an application in the Market?

Thanks for any useful answers!

04-30-2009, 04:59 AM #10 (permalink)

RozzaCSenior Member Join Date: Feb 2009Location: London, UKPosts: 625 Device(s): T-Mobile G1 (UK)Thanks: 0Thanked 6 Times in 6 Posts

Quote:

Originally Posted by FortKnox Thanks for the tutorial. Haven't tried it yet, but it looks very thorough. I'm still in the Developer 100

stage of learning how to develop for Android (I was a java developer by trade for 5 years, a lifetimeago). I'm very sorry if these questions have already been answered elsewhere, I just didn't findthem, but if you could post the URL, many much thanks. Way more basic questions than you

address:

-do I need a separate piece of hardware than the basic T-Mobile G1 phone I already have (i.e. a"developer phone")?

-so if I get the Android SDK (I already use Eclipse), is it possible to get my in-progress applicationonto my phone for testing without putting it out in the Market? Or is the emulator designed to

eliminate that need?

-what is the path to getting an application in the Market?

Thanks for any useful answers!

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 17/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 18: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Thanks for any useful answers!

To answer your questions...

- I'm learning to develop for android and I'm getting along fine with just the normal G1 and the SDK emulator..

- I think the emulator is meant to eliminate that need...although I doubt it's better than actually having a

real phone to test it on...

- That...is something I don't know the answer to...I'm nowhere near creating a fully working app so I haven'tbothered to look it up...but I'm assuming it would be through the Android Market website...(or maybe the

Developers site)

04-30-2009, 05:30 AM #11 (permalink)

devolioMember

Join Date: Oct 2008Location: MichiganPosts: 339 Device(s):Thanks: 0Thanked 22 Times in 5 Posts

To answer your 2nd and 3rd questions...

Once you've got all the SDK stuff set up, you can pretty much plug in your phone, run your project, andEclipse does the rest. If the phone is plugged in, it loads it up on your G1/ADP1, if not, it loads up in theemulator.

As for the market, you'll have to sign up for a developer account ($25), you'll have to confirm yourbank/google checkout connected account (using a small deposit, a-la-paypal/other payment services,

assuming you want to sell your apps) and then you'll be able to post your applications to the market. Insteadof explaining in boring text how it all works, I took a few screenshots for you.

The main market menu. Lists all your submitted applications, the number of ratings, 'total' rating, totaldownloads and estimated installations with %, Price, and whether or not it's published. At the bottom right,you'll see the Upload application button...

Upon c licking that, you'll be able to choose the application to upload (signed with non-debug keys, ofcourse,) which language it's localized for, it's title and description, type and category, price...

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 18/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 19: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Whether or not to use copy protection (supposedly stops non-root users from being able to copy yourapplication,) Which countries you want to release your app or game in, your contact information, and theagreements you've to agree to.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 19/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 20: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by devolio; 04-30-2009 at 05:33 AM. Reason: Clarified afew things

That's about it. Develop your app, sign it for release, upload, and you're done. If you've got anymorequestions, feel free to ask

The Following 2 UsersSay Thank You todevolio For This UsefulPost:

Gryphin81 (04-28-2010), whbjr (06-06-2010)

06-06-2009, 04:56 PM #12 (permalink)

renegadeandyJunior Member Join Date: Jun 2009Posts: 16 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

omg - I am a very able Java developer - I had no idea the magic was SDK compatible with Java i.e you writeJava code for the apps - that is outstanding - now I just need an idea for an app to develop!

08-29-2009, 05:35 AM #13 (permalink)

blackoutNew Member Join Date: Sep 2008Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Big Thanks

Thanks a lot for the guide mate. Just got everything up and running and going to start coding.

By the way, do you know of any good start up sites or guides?

Thanks a lot

09-12-2009, 09:06 PM #14 (permalink)

JacquelineMember

Join Date: Sep 2009Location: FloridaPosts: 396 Device(s): DroidThanks: 0Thanked 4 Times in 1 Post

Thank you so much! I was having a bit of trouble figuring out what to download and how to hook it alltogether on my 64 bit Vista, but your guide worked a treat!

Things changed slightly with the new version 7, yet I was able to figure out everything on the installationfrom your notes.

I ran into a few problems with the project and found these fixes for them.

Error starting project: "An SDK Target must be specified"

I found this error is due to me not setting the SDK location preference in Window / Preferences / Android.Once set, I had three available: Android 1.1, Android 1.5, and Google APIs.

Error running project:- no classfiles specified - Conversion to Dalvik format failed with error 1

This is a weird one. I found I had to highlight the project and hit F5 to clear this error. The project has a redx on it until you do F5 once for some reason.

Error 2 running project:Android AVD Error. No compatible targets were found. Do you wish to a add (sic) new Android Virtual Device?

This gave me an option to create an Android Virtual Device, so I filled in the settings (below), clicked CreateAVD, selected the one I just created, then clicked Finish.

Name: Android-1.5-EmulatorTarget: Android 1.5 - 1.5Skin: Default (HVGA)

Wow! Now I actually have an emulator up and running!!! I see Hello World! I never could have done it

without your help. I really apprec iate the time you took to put all this together. I hope the notes I addedthere will help anyone who runs across the troubles I did.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 20/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 21: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by G8D; 09-13-2009 at 03:47 PM.

Last edited by galt; 11-11-2009 at 01:34 AM.

The Following 4 Users

Say Thank You toJacqueline For ThisUseful Post:

omni (11-02-2010), RC21 (04-06-2010), sudeep22s (07-11-2010), thunguyetng (08-19-2010)

09-13-2009, 03:31 PM #15 (permalink)

G8DSenior Member Join Date: Sep 2009Posts: 534 Device(s): HTC HeroThanks: 2Thanked 4 Times in 3 Posts

Using SDK r3 I am getting:[2009-09-13 20:21:30 - test] no classfiles spec ified

[2009-09-13 20:21:30 - test] Conversion to Dalvik format failed with error 1

Halp meh.

Also.. anyone know a good place to learn Java?

EDIT: Ok got it booting. Now, good Java tutorial resource?

11-11-2009, 01:28 AM #16 (permalink)

galtMember Join Date: Oct 2009Location: Florida, USAPosts: 151 Device(s):Thanks: 0Thanked 2 Times in 1 Post

I only see update 17, not update 10, which takes me to update 8 not 6, of the SDK

I assume the later update is okay ?Or should I be concerned about Firefox compatability?

11-12-2009, 01:45 PM #17 (permalink)

Droid69New Member Join Date: Nov 2009Location: Bay Area - east bay.Posts: 10 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by galt I only see update 17, not update 10, which takes me to update 8 not 6, of the SDK

I assume the later update is okay ?Or should I be concerned about Firefox compatability?

I'm getting the same crap. Yo! anyone gonna answer Galt?

11-12-2009, 01:55 PM #18 (permalink)

metterJunior Member Join Date: Oct 2009Posts: 33 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Just take the newest.

11-23-2009, 07:52 PM #19 (permalink)

RossLHJunior Member Join Date: Nov 2009Location: MD/MI/NCPosts: 36 Device(s):Thanks: 0Thanked 2 Times in 2 Posts

I'm having a whole lot of trouble installing the ADT. No matter which method I try, it cant connect to theserver.

EDIT: Getting a 404 error in my browser. It must be down.

EDIT: 3 days later, still down?? This is incredibly frustrating. Is anybody else having this problem?

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 21/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 22: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by RossLH; 11-26-2009 at 04:56 PM.

11-29-2009, 04:26 PM #20 (permalink)

RossLHJunior Member Join Date: Nov 2009Location: MD/MI/NCPosts: 36 Device(s):Thanks: 0Thanked 2 Times in 2 Posts

Double posting so maybe someone will shine some light on this problem.....

Still getting nothing from http://dl-ssl.google.com/android/eclipse or https://dl-

ssl.google.com/android/eclipse. When I try to add the repository in Eclipse, it wont connect. If I try enteringeither address in my web browser, I get a 404. Do I have the address right? Is there somewhere else I canfind the tools?

I've been trying for a week now. I'd like to think I'm quite capable with Java/C++, and I really want to getstarted with developing, but Google is not making this easy for me.

11-30-2009, 05:36 PM #21 (permalink)

RossLHJunior Member Join Date: Nov 2009Location: MD/MI/NCPosts: 36 Device(s):Thanks: 0Thanked 2 Times in 2 Posts

Alright, played around with this some more, and finally got it to work. If anyone else is having the same

problem, here's what I did (and it really was as simple as unchecking ONE box ):

Download the ADT Plugin .zip file. In the 'Add Site' dialogue, click archive, select the .zip file, and hit OK.Uncheck the box that reads "Contact all update sites during install to find required software". If you

dont, it'll just try to connect to the same site that you couldn't connect to before, and much like I did for aweek, you'll be running in circles. When it comes to adding SDK components, I also found I had to enable'force download from http' in the settings.

Regardless, it looks like everything should be up and running after I finish adding the SDK components.Thanks for the writeup! Despite a small road block, the writeup was very helpful.

12-08-2009, 04:55 PM #22 (permalink)

tsaundersMember Join Date: Nov 2009

Posts: 328 Device(s): DroidThanks: 0Thanked 1 Time in 1 Post

Quote:

Originally Posted by RossLH

Alright, played around with this some more, and finally got it to work. If anyone else is having the

same problem, here's what I did (and it really was as simple as unchecking ONE box ):

Download the ADT Plugin .zip file. In the 'Add Site' dialogue, click archive, select the .zip file, and hitOK. Uncheck the box that reads "Contact all update sites during install to find required

software". If you dont, it'll just try to connect to the same site that you couldn't connect tobefore, and much like I did for a week, you'll be running in c ircles. When it comes to adding SDKcomponents, I also found I had to enable 'force download from http' in the settings.

Regardless, it looks like everything should be up and running after I finish adding the SDKcomponents. Thanks for the writeup! Despite a small road block, the writeup was very helpful.

Thank you! I was looking for this.

12-09-2009, 04:18 PM #23 (permalink)

flu13Member Join Date: Nov 2009Posts: 441 Device(s): Samsung MomentThanks: 23Thanked 12 Times in 9 Posts

It looks like the newest stuff in Eclipse for Android is very different than the steps outlined above. It'scomplaining about things that I don't have set up yet when I try to create an Android project. Anyone havean updated set of set-up steps?

12-18-2009, 01:18 AM #24 (permalink)

amit.savaniNew Member Join Date: Dec 2009Posts: 1 Device(s):

Unable to create new project

Hi,

I am not able to create new project as next button is disabled in "New Android Project" dialog in ec lipsethough mandatory values specified.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 22/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 23: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Device(s):Thanks: 0Thanked 0 Times in 0 Posts

I think I have not selec ted the target build as the list is empty. How this list is populated?

Please suggest.

12-29-2009, 02:42 PM #25 (permalink)

Forest MarieNew Member Join Date: Dec 2009Posts: 5 Device(s):Thanks: 1Thanked 0 Times in 0 Posts

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Server redirected too

many times (20)

Can anyone tell me how to get 'past' this????

It's highly annoying ...

I can hit that link directly but the Android SDK/ADVD Manager cannot???

Please help - anyone

01-02-2010, 10:08 AM #26 (permalink)

flu13Member Join Date: Nov 2009Posts: 441 Device(s): Samsung MomentThanks: 23Thanked 12 Times in 9 Posts

Isn't there anyone who knows what they're doing who monitors this forum? Three questions over three weeksand change, and no responses.

01-02-2010, 02:42 PM #27 (permalink)

justjimjpcPremium Member

Join Date: Nov 2008Location: Washington DC,USAPosts: 10,585 Device(s): G1(2ea) 1 rooted,MT3G v1.0, Samsung VibrantThanks: 5Thanked 175 Times in 89Posts

Quote:

Originally Posted by fluharty13 Isn't there anyone who knows what they're doing who monitors this forum? Three questions over

three weeks and change, and no responses.

One or two things might be the reason:

Maybe no one visiting your thread knows the answer;

Maybe no one is visiting your thread;

There may be a limited number of devs that use the forum;

I would suggest also trying IRC #android-dev

__________________

Help Us: Submit FAQ's You have answered over and over! Will add them to OUR FAQ LIB. Check outour FAQ's.... Also Check out our Tag Search.

Running 2 G1's & a MT3G(dMd64), Vibrant(rooted) : 1.) Legit G1=1.6 DRC83 // 2.) Rooted G1=CM's 4.2.15.1(03/08/10), Recovery =RA 1.5.2

Link for --> G1 Dream ROOT GUIDE ///// Link for --> UN-ROOT GUIDE.

01-03-2010, 01:13 AM #28 (permalink)

aknaubNew Member

Join Date: Jan 2010Posts: 1 Device(s):

Quote:

Originally Posted by Forest Marie

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Serverredirected too many times (20)

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 23/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 24: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by TheLupineOne; 01-20-2010 at 04:36 AM.

Last edited by TheLupineOne; 01-20-2010 at 03:45 PM. Reason:Problem!

Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Can anyone tell me how to get 'past' this????

It's highly annoying ...

I can hit that link directly but the Android SDK/ADVD Manager cannot???

Please help - anyone

after you get the error click c lose and then goto 'Settings' and check Force https://...

then save and apply

01-14-2010, 02:57 AM #29 (permalink)

tempforNew Member Join Date: Jan 2010Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by kwty hi ,when i add site http://dl-ssl.google.com/android/eclipse it said no repository and i clicked ok but

when i tried to expand the tree of the site it said again there is no repository and it didn't expandedso please tell me what i have to do.

thanks

Correct should be:

http://dl-ssl.google.com/android/eclipse/site.xml

01-20-2010, 03:58 AM #30 (permalink)

TheLupineOneNew Member Join Date: Jan 2010Posts: 10 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Well, Hi! I've dec ided to start developing for Android. Even though I don't have an Android phone and all...

It's all for fun and profit. A nice little 49p, 99p app.

01-20-2010, 05:02 AM #31 (permalink)

TheLupineOneNew Member

Join Date: Jan 2010Posts: 10 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

What should I set as the SDK Location in Window > Preferences > Android?

01-20-2010, 09:43 PM #32 (permalink)

champ1979New Member Join Date: Jan 2010Posts: 3 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by TheLupineOne What should I set as the SDK Location in Window > Preferences > Android?

I have the same question--I downloaded the SDK through Eclipse and have no idea where it went...

01-21-2010, 04:49 AM #33 (permalink)

justjimjpc

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 24/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 25: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by TheLupineOne; 01-21-2010 at 07:52 AM.

justjimjpcPremium Member

Join Date: Nov 2008Location: Washington DC,USAPosts: 10,585 Device(s): G1(2ea) 1 rooted,MT3G v1.0, Samsung VibrantThanks: 5Thanked 175 Times in 89Posts

Quote:

Originally Posted by champ1979 I have the same question--I downloaded the SDK through Eclipse and have no idea where it went...

Check the downloads folder...

01-21-2010, 07:46 AM #34 (permalink)

TheLupineOneNew Member Join Date: Jan 2010Posts: 10 Device(s):

Thanks: 0Thanked 0 Times in 0 Posts

Well, I've copied the Android SDK into the C:\ drive (C:\android). It's all there, so what the pfargtl?

Look at this from the readme.

Quote:

In order to start developing applications, you must install at least one

version of the Android platform using the SDK Manager.

SDK Manager! I'll have to try use that. That could be the problem!

01-21-2010, 12:49 PM #35 (permalink)

argenisNew Member Join Date: Jan 2010Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by routhusanny

Hi,thats a nice presentation by you for installing android on windows xp. It is very helpful to me. aftersetting the path, when i tried to start eclipse a error window flashed on the screen saying that " a

java Runtime environment or jdk must be available inorder to run eclipse. No java virtal machinewas found after searching the following locations c:\ec lipse\jre\bin\javaw.exe javaw.exe in yourcurrebt path". I tried changing paths, but i did not succeed. I have been using windows xp 2002version sevice pack 2. Please tell me solution. Thanks in advance.

I'm having the same problem with windows 7 64bit

01-22-2010, 05:30 PM #36 (permalink)

TheLupineOneNew Member Join Date: Jan 2010Posts: 10 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Now at the bit just before the emulator.

I have one error.

The project cannot be built until build path errors are resolved

Location: Unknown.

WHY?

01-25-2010, 11:15 PM #37 (permalink)

saruman_wNew Member

I'm not exactly using XP but I don't think it'll quite matter.

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 25/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 26: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by saruman_w; 01-25-2010 at 11:19 PM.

Join Date: Jan 2010Posts: 1 Device(s):Thanks: 0Thanked 0 Times in 0Posts

Anyway I'm having trouble downloading the Android SDK Platform. I've followed the tutorial on the androiddeveloper site and they say you use the AVD Manager to get it. However this is all I get:

Just a bunch of Add-on stuff, no Platform. What's going on? Am I using the wrong URL?

Edit: Nevermind.... I figured it out. Had to force the HTTPS thing in the Settings. Thought I already did it and

didn't work, but tried again and seemed to work that time.

01-26-2010, 04:51 PM #38 (permalink)

hourangNew Member Join Date: Jan 2010Posts: 12 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

i downloaded the u18 version of java ee sdk since i couldnt find u10 anywhere. it had a little different menusbut was about the same. it is saying i have no targets when i go to create a project testrun. in preferences-

>android, i set the path to the android sdk and it found the tools folder but it doesnt show any sdk targets.any idea?

01-27-2010, 10:27 AM #39 (permalink)

hourangNew Member Join Date: Jan 2010Posts: 12

Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by hourang i downloaded the u18 version of java ee sdk since i couldnt find u10 anywhere. it had a little

different menus but was about the same. it is saying i have no targets when i go to create a

project testrun. in preferences->android, i set the path to the android sdk and it found the toolsfolder but it doesnt show any sdk targets. any idea?

nevermind, ran the sdk and avd manager and all the updates and now they all show up.

02-04-2010, 08:14

AM #40 (permalink)

bryngelsonNew Member

Is it possible to download Android SDK components without the Android SDK manager?

Is it possible to download Android SDK components without the Android SDK manager?

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 26/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 27: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

New Member Join Date: Feb2010Posts: 2 Device(s):Thanks: 0Thanked 0 Timesin 0 Posts

Is it possible to download Android SDK components without the Android SDK manager?

During the installation of my Android SDK, I am getting stuck during the process where the manager goes out anddownloads all the revisions of the APIs and the SDKs.

It is potentially due to a socket issue that typically occurs when a database query is called and there are a largenumber of TCP connections... according to googling my error (No buffer space available (maximum connectionsreached?): recv failed )...

Here is the errors that come up..

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 27/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 28: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

So I just need to know if there is a way, other then using the Android download manager, to download / update my

computer with the Android SDK components....

Thank you.

02-11-2010, 12:53 AM #41 (permalink)

JoshuaRNew Member Join Date: Feb 2010Posts: 1 Device(s):Thanks: 0

Thanked 0 Times in 0 Posts

Hi, so I have a problem others may have mentioned before:

When trying to install the Android ADT plugin to Eclipse, I get the following:

Quote:

An error occurred while collecting items to be installed

No repository found containing: org.eclipse.draw2d/osgi.bundle/3.4.1.v20080910-1351No repository found containing: org.eclipse.emf.common/osgi.bundle/2.4.0.v200808251517No repository found containing: org.eclipse.emf.ecore/osgi.bundle/2.4.1.v200808251517No repository found containing: org.eclipse.emf.ecore.change/osgi.bundle/2.4.0.v200808251517

No repository found containing: org.eclipse.emf.ecore.edit/osgi.bundle/2.4.1.v200808251517No repository found containing: org.eclipse.emf.ecore.xmi/osgi.bundle/2.4.1.v200808251517No repository found containing: org.eclipse.emf.edit/osgi.bundle/2.4.1.v200808251517

No repository found containing: org.eclipse.wst.common.emf/osgi.bundle/1.1.202.v200809111955No repository found containing:org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/1.1.201.v200808071700

No repository found containing:org.eclipse.wst.common.frameworks/osgi.bundle/1.1.200.v200805140020No repository found containing:org.eclipse.wst.common.project.facet.core/osgi.bundle/1.3.3.v200809102124

No repository found containing: org.eclipse.wst.common.ui/osgi.bundle/1.1.301.v200805140415No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/1.1.302.v200808260045No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/1.1.2.v200809120159

No repository found containing: org.eclipse.wst.validation/osgi.bundle/1.2.2.v200809050219No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/1.1.305.v200809120354No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/1.0.410.v200809120143

I've tried with http and https

I'm using the Stanford edition of Eclipse 3.4.2 (Stanford in that it's the version they had us use for classesand whatnot). Do you think I need to get another edition of Eclipse, or is there another problem? Like, am Imissing any other plugins that I can just install? If I get another version of Eclipse, do I lose anything from

previous work?

02-16-2010, 01:12 PM #42 (permalink)

rawnessMember Join Date: Oct 2009Posts: 280 Device(s):Thanks: 5Thanked 0 Times in 0 Posts

Quote:

Originally Posted by TheLupineOne

Now at the bit just before the emulator.

I have one error.

The project cannot be built until build path errors are resolved

Location: Unknown.

WHY?

Does anyone know an answer to this one? I'm experiencing the same issue.

02-16-2010, 01:21 PM #43 (permalink)

jmimsMember

Re: Installing Eclipse and the Android SDK (Windows XP)

I think I had a repo error when doing this myself, though I don't recall the exact wording. I'm pretty sure I

solved it by keeping the google address to download from in the url field; as adding the repo to the list did

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 28/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 29: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Join Date: Dec 2009Location: Columbus, GAPosts: 248 Device(s): Motorola DroidThanks: 3Thanked 15 Times in 9 Posts

solved it by keeping the google address to download from in the url field; as adding the repo to the list didnot work. I don't have my laptop right in front of me, so I can't tell you where for sure, just yet, to get it to

fownload.

02-16-2010, 01:21 PM #44 (permalink)

jmimsMember

Join Date: Dec 2009Location: Columbus, GAPosts: 248 Device(s): Motorola DroidThanks: 3Thanked 15 Times in 9 Posts

Re: Installing Eclipse and the Android SDK (Windows XP)

fownload=download...

02-18-2010, 08:31 AM #45 (permalink)

rawnessMember Join Date: Oct 2009Posts: 280 Device(s):Thanks: 5Thanked 0 Times in 0 Posts

For whatever reasons, restarting eclipse got rid of the build path errors for me.

04-02-2010, 08:28 PM #46 (permalink)

nkkMember

Join Date: Mar 2010Posts: 300 Device(s): Droid Incredible(rooted, S-OFF, CM 6.1). Haveowned the Droid ErisThanks: 28Thanked 128 Times in 40Posts

Which Java JDK do I get? I do not see JDK 6 update 10. There is only update 19. I know how to program, butam still new to this, and want to make sure the update does not alter the functionality I need.

Thanks,Nkk

04-06-2010, 12:16 AM #47 (permalink)

RC21New Member Join Date: Mar 2010Posts: 14 Device(s):Thanks: 2Thanked 1 Time in 1 Post

Okay, what am I missing? I had to build the target (Thanks to the information that Jacqueline provided earlier

in this feed) and now I've got the emulator up and running but I don't see the test application running. Theemulator is showing the normal screen and not the "hello world" application. Here is the information from theconsole in eclipse:

[2010-04-06 22:37:44 - testrun] Automatic Target Mode: Preferred AVD 'Android-2.1-Emulator' is availableon emulator 'emulator-5554'[2010-04-06 22:37:47 - testrun] Application already deployed. No need to reinstall.

[2010-04-06 22:37:47 - testrun] \testrun\bin\testrun.apk installed on device[2010-04-06 22:37:47 - testrun] Done!

Any help on why it's not running? I don't see any errors here...

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 29/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 30: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

Last edited by RC21; 04-06-2010 at 11:44 PM.

Last edited by Dragosi; 04-09-2010 at 02:02 AM.

Digg del.icio.us StumbleUpon Google

04-09-2010, 01:15 AM #48 (permalink)

DragosiNew Member Join Date: Apr 2010Posts: 2 Device(s):Thanks: 2Thanked 0 Times in 0 Posts

hey guys. so... i'm getting this error when i try the testrun. its saying that

"An SDK Target must be specified"

and ive gone into the sdk and avd downloader thing, and i can't get the updates to show... any ideas?

EDIT: NeverMind i got it.

05-03-2010, 01:23 PM #49 (permalink)

pandorazboxxNew Member Join Date: May 2010Posts: 10 Device(s): Samsung Behold IISamsung Galaxy S: VibrantThanks: 1Thanked 0 Times in 0 Posts

I was having some trouble downloading this stuff and getting eclipse to work. If anyone else is new here andtrying to follow this setup there's a couple things to get you all the files you'll need.

From SUN you first need to install the latest JDK. Then you can search through their older downloads anddownload the EE SDK.

In eclipse the menus have changed since this tutorial was written. You'll need to go to window->preferences. Then navigate to Install/update - available software sites. Then you can add http://dl-ssl.google.com/android/eclipse/site.xml to the list. Now if you need to download the android developer's tools

you go back to the main ec lipse screen and navigate to help->Install New Software. In the space where itsays to Work with paste in that same URL: http://dl-ssl.google.com/android/eclipse/site.xml . Then select allthe developer tools available. Restart, and you now have the Android dev tools available.

05-06-2010, 02:29 PM #50 (permalink)

ShaqArifNew Member Join Date: Apr 2010Posts: 8 Device(s):Thanks: 0Thanked 0 Times in 0 Posts

Quote:

Originally Posted by Dragosi hey guys. so... i'm getting this error when i try the testrun. its saying that

"An SDK Target must be specified"

and ive gone into the sdk and avd downloader thing, and i can't get the updates to show... anyideas?

EDIT: NeverMind i got it.

Any clues for those of us getting the same error?

Page 1 of 2 1 2 >

Bookmarks

Tags

eclipse, install eclipse, install sdk, sdk

« Previous Thread | Next Thread »

Android Forums > Android Development > Application Development > Developer 101

Installing Eclipse and the Android SDK (Windows XP)

Posting Rules

You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your postsBB code is On

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 30/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.

Page 31: Installing Eclipse and the Android SDK (Windows XP) - Android Forums

BB code is OnSmilies are On[IMG] code is OnHTML code is OffTrackbacks are OnPingbacks are OnRefbacks are OnForum Rules

Similar Threads

Thread Thread Starter Forum Replies Last Post

Installing the Android SDK, Eclipse on Windows 7 russellbateman Developer 101 6 01-25-2011 10:21 AM

Installing Windows CE on Android 2.2 wadboram Android Applications 0 01-14-2011 02:45 PM

Installing Eclipse and the Android SDK (Ubuntu 8.04/8.10) devolio Developer 101 10 08-01-2010 03:33 PM

Error installing Android plugin for Eclipse andywhoa Developer 101 2 06-02-2010 10:48 PM

[HELP] error installing android (archlinux + eclipseganymede)

smattiuz Application Development 1 11-26-2009 07:29 PM

All times are GMT -5. The time now is 05:43 AM.Powered by vBulletin® Version 3.8.6

Copyright ©2000 - 2011, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.3.2

Custom vBulletin Skins by: Relivo

-- Phandroid Skin Contact Us - Android Forums - Archive - Top

3/2/2011 Installing Eclipse and the Android SDK (…

androidforums.com/…/2314-installing-e… 31/31

Generated by Foxit PDF Creator © Foxit Softwarehttp://www.foxitsoftware.com For evaluation only.