Android: "Path for project must have only one segment"

Android

Android Problem Overview


I just setup the NotePad sample project as described here, but when I try to launch it (Ctrl+F11) I received the following error message box:

> Path for project must have only one > segment.

enter image description here

What does this error mean and why is it happening?

(I tried to consult this article, but it seems irrelevant to my problem because I have no getProject anywhere in this copied-verbatim sample project)

Android Solutions


Solution 1 - Android

I found the cause of the problem: It turns out that when I specified the (only) Launch configuration for the project (Properties > Run/Debug Settings), I forgot to specify the Project name:

enter image description here

Hmmm... I thought that if I right-click the project, its name will be taken automatically.

Anyway, it works now. Yeah! :)

Solution 2 - Android

I faced the same problem and resolved it in the following steps:

  1. Expand the src directory
  2. Expand com.example.Login (the app name)
  3. Right click on MainActivity.java
  4. Go to run as-> run configurations
  5. Browse your project
  6. Launch Default activity
  7. Run

note: Before doing this, set an AVD by using Android virtual device manager.

Solution 3 - Android

For me it was helpful to do the following: Run -> Run Configurations -> Select Android Application I don't know why, but there was something called New Application...delete it....after delete everything should work fine

Solution 4 - Android

i have the same problem i solved it below

go to properties> run/debug settings and erase your current settings and run it

it should work

Solution 5 - Android

Right click on your project -> Properties > Run/Debug Settings --> Select your project and click on Edit --> look for the "Project:" and write your project name there.

Solution 6 - Android

I had the same problem. The project line, not the name line, was left blank after copying in a renamed project to eclipse. Another time, it was the name line. I love eclipse.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAndroid EveView Question on Stackoverflow
Solution 1 - AndroidAndroid EveView Answer on Stackoverflow
Solution 2 - AndroidAryanView Answer on Stackoverflow
Solution 3 - AndroidNobodyView Answer on Stackoverflow
Solution 4 - AndroidKelvin C RicafortView Answer on Stackoverflow
Solution 5 - AndroidAmit PatelView Answer on Stackoverflow
Solution 6 - AndroidR Earle HarrisView Answer on Stackoverflow