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
In order to resolve this problem for android projects. follow the below mentioned steps
new->android project->create project from existing source and in this you can give your code location. Now, it will import all the specified project code and will work fine