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 .
This basically boils down to:
- Install Eclipse (I just used the ubuntu software center for this).
- Download Android SDK and unpack it.
- Install Android ADT plugin for Eclipse using the Eclipse install-software feature 
- 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.
Complete error log
!ENTRY org.eclipse.core.jobs 4 2 2011-02-20 12:12:00.397!MESSAGE An internal error occurred during: “Launching android”.!STACK 0java.lang.IllegalArgumentException: Path for project must have only one segment.at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:181)at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.getProject(Unknown Source)at com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Unknown Source)at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)