Why “no projects found to import”?

后端 未结 11 1788
臣服心动
臣服心动 2020-12-02 04:39

I am trying to \"import existing project into workspace\". As the \"root directory\" I select the directory where all my .java (and .class) files are located. Eclipse writes

11条回答
  •  爱一瞬间的悲伤
    2020-12-02 05:04

    If you don't have I just have .project and .classpath files in the directory, the only way that works (for me at least) with the latest version of Eclipse is:

    1. Create a new Android project
      • File -> New -> Project... -> Android -> Android Application Project -> Next >
      • Fill in the values on this page and the following according to your application's needs
    2. Get your existing code into the project you just created
      • Right click the src file in the Package Explorer
      • General -> File System -> Next >
      • Browse to your project, select the necessary files, hit Finish

    After this, you should have a project with all your existing code as well as new .project and .classpath files.

提交回复
热议问题