Because I was trying Ubuntu 10.10 on my laptop, I had to install a new development environment. Not too much work: I’ve used the installing instructions from Google [1].

This basically boils down to:

  1. Install Eclipse (I just used the ubuntu software center for this).
  2. Download Android SDK and unpack it.
  3. Install Android ADT plugin for Eclipse using the Eclipse install-software feature [2]
  4. Set the path to the android SDK / tools (step 2)  in the Eclipse preferences.

I didn’t install the JDK, because it was on my machine by default. I assume the package manager has that, but I’m not sure. Now I’m all happy with my new toys, installing Subclipse for SVN, getting my source, and coding away. Then the trouble started :)


It seems that I couldn’t  start any Android Virtual Device (AVD). I made a new run configuration, but it didn’t start. Instead I got an error, stating:

‘Launching android’ has encountered a problem.

An internal error occurred during : “Launching android”.

Clicking “details >>” produces an extra line:

Path for project must have only one segment

And, for full disclosure, the complete log-entry included trailing this post.

Cause & Solution

It seems that this rather cryptic message means nothing more in my case than “please enter a name and project for your run configuration”. I did have a “name”, but left the “Project” field empty. Entering a value in the ‘project’ (the “AndroBlip” you see next to ‘browse’) fixed it. Sources seem to indicate that the same error is produced if you don’t enter a value in the ‘name’-field.

run configurations screenshot




Complete error log

!ENTRY 4 2 2011-02-20 12:12:00.397
!MESSAGE An internal error occurred during: “Launching android”.
java.lang.IllegalArgumentException: Path for project must have only one segment.
at org.eclipse.core.runtime.Assert.isLegal(
at org.eclipse.core.internal.resources.WorkspaceRoot
.getProject(Unknown Source)
.launch(Unknown Source)
at org.eclipse.debug.internal.core.LaunchConfiguration
at org.eclipse.debug.internal.core.LaunchConfiguration
at org.eclipse.debug.internal.ui.DebugUIPlugin
at org.eclipse.debug.internal.ui.DebugUIPlugin$8

66 comments on Eclipse/AVD – Path for project must have only one segment

  1. Ole says:

    OMG, thanks for the hint, it could have taken hours to find that.

    What a useless error message.


  2. Aamir Yaseen says:

    Thanks a lot for this guide. I was really lost with this error.

  3. Baby Steps says:

    Perfect! I feel like such an infant. Who would have thought that it was something so simple.

    Baby Geek

  4. ennaN says:

    Really glad it actually helped people that I posted this, that was the goal :D

  5. ken says:

    Adding my thanks to the list – this was one of the stupidest error messages I have ever seen.

  6. Arun says:

    Thank you! I feel stupid now that I know the reason, but then I look at the error message and realize it’s not all my bad.

  7. Robert says:

    Thank you so much. Like everyone else, couldn’t for the life of me figure out what this error was.

  8. waseem saeed says:

    this is great .. i was trying to get rid of this error.. hope u work more

  9. me says:

    only took me 10 seconds to debug…cause i saw this. THANKS! i had a blank configuration.

  10. Borange says:

    Thank you, got the error while just creating a new project and know I am up to go again =)

  11. ennaN says:

    Thanks for leaving a comment people ;D

  12. Paul says:

    Thanks. I’ve had so many problems with eclipse giving out such cryptic errors – thank god for google/internet search – as I wasted much time trying to figure out what this means.
    Having come from working in Xcode I’m finding eclipse is very picky about various settings, and has some frustrating features such as forgetting that you have Android tools at a particular location, just because you created a new workspace.. I realise that it’s because you may use different API level tools for different projects, but it would be nice if it remembered the last one you had set-up..

  13. ennaN says:

    Yeah, I know, It can be a problem, you have to remember all the seperate parts you need to check. “quickly” setting up a workstation as a development environment isn’t that quickly :(

  14. BeGlimpses says:

    Hi, trying my best to log in, but every time I get “Sign In denied”. I am using the same password as on the computer. ???

  15. ronak says:

    Thanks for the solution. I was trying to solve it by myself but you helped me out.

  16. Bob Mc says:

    Thanks alot! Five second fix

  17. MWorks says:

    Than you dude!!!! Amazing how simply yet hard to find was this problem!!!

  18. Felix says:

    Thanks for the post. Solved my problem!

  19. Imran says:

    thanks a lot brother for the post……..

  20. Sitenook says:

    Thanks for that, was really getting frustrated getting stopped in my tracks.

  21. Aliyah Deeva says:

    Sure as heck saved my hiney. Thanx!

  22. shwetha kiran says:

    saved my time :) :)

  23. ennaN says:

    Glad to have helped, and again: thanks for leaving a comment :)

  24. icamys says:

    Thank’s! Very usefull)

  25. vlganesh says:

    thanks dude,,

  26. Jay says:

    Thanks for posting this!

  27. Guillermo says:

    Thanks for helping java to be more dev friendly!

  28. Eyal says:


  29. rottenzombie says:

    Thanks, had the same problem and resolved it fast with your help!

  30. subhojit777 says:

    Thank you :)

  31. ek says:

    Thanks! Stupid error message -_-

  32. fai says:

    thank you ^^

  33. zeeshan says:

    thanx alot

  34. ennaN says:

    Very happy this is still helpfull, amazed that it isn’t updated to something more understandable :)

  35. aj says:

    it did not work for me. are there other options?

  36. Nanne says:

    Well, not that I know of. You could double-check all the fields, make sure you have entered a valid name and selected an existing project, and maybe other fields suffer from this weird error too.

    Otherwise I wouldn’t really know, although you might be finding yourself looking at the actual error, meaning that in this case there really is something wrong with the path? I’m not really sure what “only one segment” means in this case. Sorry :(

  37. Martin says:

    Awesome, saved me lots of time : D

  38. Robert says:

    Worked! Thanks.

  39. Shivam Gandhi says:

    Worked for me also.
    Thanks. :)

  40. sankhadeep says:

    worked for me…..
    Thanks for the helpful info,,,,

  41. dharfleet says:

    Thanks for posting, saved me time.

  42. Byakko says:

    Thanks! Now I can code instead of bashing my head against the wall.

  43. Penteado says:

    Worked for me. Thanks!

  44. Guy says:

    This really helped!

  45. Lukas says:

    Perfect, thanks. Helped a lot!

  46. Shariq says:

    Thanks alot, It worked for me :)

  47. suja says:

    Thank U

  48. Lin says:

    Thanks so much for this!

  49. Krishna says:

    Thanks, solved the issue :)

  50. Ricky says:

    Hahaha well done!! :) Why doesn’t google make an SDK that’s just complete and well less buggy :(

  51. Kman says:

    Awesome! It worked! Thank you for the helpful post!

  52. fuat says:

    thank you very much

  53. Wolfgang says:

    Thank you from me too, had same problem.

  54. Rahul chadalawada says:

    I was just trying to fix this thing from 12 hours your solution finally helped me out thanks a lot man

  55. MarkT says:

    ai caramba, why don’t they just have an error message that goes something like “hey, something is wrong somewhere in your project, but just for fun I’m not going to tell you where- how about if ytou spend hours guessing!”

  56. MarkT says:

    PS -thank you for the post!

  57. ennaN says:

    Thanks for the thanks everyone :D

  58. jim says:

    thanks! Helped me

  59. Chris says:

    Cheers dude, life saver!

  60. Kedar says:

    Thanks a lot

  61. DaveJ says:

    You, sir, are the best.

  62. Alexander says:

    Thank you very much, really helped!

  63. Manju says:

    Thank You, saved lot of time.

  64. Eric says:

    Thanks for removing the roadblock

  65. Todd says:

    Thank you. I’ve made 10 different projects so far, including 2 today, and never had this problem until my most recent, for some mysterious reason. Good thing for this clear explanation. :)

  66. Tarek Aloui says:

    Thnx a lot that helped me :D