Android: “Path for project must have only one segment”

前端 未结 6 1648
渐次进展
渐次进展 2020-12-04 08:50

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

相关标签:
6条回答
  • 2020-12-04 09:32

    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.

    0 讨论(0)
  • 2020-12-04 09:33

    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.

    0 讨论(0)
  • 2020-12-04 09:36

    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.

    0 讨论(0)
  • 2020-12-04 09:41

    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

    0 讨论(0)
  • 2020-12-04 09:42

    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

    0 讨论(0)
  • 2020-12-04 09:46

    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! :)

    0 讨论(0)
提交回复
热议问题