How can I import an old Project into my new workspace with a new installed version
of eclipse?
Just one not the complete workspace
Just copy the folder into your Workspace folder, and go to the little project exporer on the left and import it. That's about it.
file -> import -> projects menu should let you do what you need then just follow the wizard.
Go to file menu ->inport
Select General-> Existing projects into workspace
3, Browse the project folder
If you want copy the project into workspace enable the checkmark
Finish
Create a project with the same name of the old project. Then replace all the files on its directory.
I have a root directory with a number of android eclipse projects inside. They all have .project files, but eclipse does not seem to see them as eclipse projects? Does anyone know the reason why?
Cause for not importing projects in eclipse :
Reason 1 : Project Structure Differs
Reason 2 : Project Configuration files missing or not available
Reason 3 : Project can be already exists in workspace
Reason 4 : Don't have Proper and Standard Naming Convention
Follow these steps.
Hope you have android sdk and ADT plugin for eclipse.
File-->Import-->Android-->Existing Android code into workspace.
Then import the projects from your root directory using Browse button. If you don't have ADT plugin definitely you never import your android projects.
You have to import them manually
First File > Import
Then General > Existing Project Into Workspace
Either select root directory or Select archive file, click Browse to locate the directory or file containing the project that you want to import
Under Projects select the project that you want to import
Finally click finish to import the project
Here is a link to the eclipse help section on this
http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-importproject.htm
I have downloaded an android sample called custom view from android refernce from this location
http://developer.android.com/shareables/training/CustomView.zip
It only has the java files and other resources but does not contain any project file for me to import in eclipse as a project.
So when I import existing project into workspace, eclipse does not pick the project in the import dialog.
How can I import it into eclipse ? I have ADT tools installed already,
Thanks,
Ahmed
Maybe that's because you'll have to make the manifest.xml file.
What I'd suggest, is to create a new Android project, with the same package and Activity's name than in your zip (ie com.example.android.customviews and MainActivity), then copy/paste the files from your zip to the new project directory (thus replacingsrcandres` folders). That way, Eclipse will generate the manifest for you, with correct reference.
This should not take more than 30 seconds...
Go to Project Explorer and right click -> Import -> Select Android -> Existing Android Code Into Workspace -> browse to folder with your code -> finish
I encountered the same problem. I did thought that it's missing the AndroidManifest.xml file. I tried to fixed it and place it here. You can download it an try.
https://github.com/JakeWharton/Android-ViewPagerIndicator
I'm trying to include that library/project into my workspace, however nothing shows up when I choose the folder to import. I have no clue what I'm doing wrong as I use the same method to import other sample projects. There must be something different about this project.
Could someone try it out?
File->New-> Android Project
select Create project from existing source
Browse...->JakeWharton-Android-ViewPagerIndicator\library
Finish
if any errors in project exist,try next:
go to libs folder in eclipse Package Explorer
right click on android-support-v4.jar
Build Path -> Add to build path
I'm trying to import and existing Android project into my current Eclipse workspace. I select File->New->Android Project, which brings up the Android project dialog, I then select, "Create project from existing source", Location, Build Target and Finish.
I get the following error: Invalid project description.
Does anybody know how to get past this error?
File → Import → General → Existing Projects into Workspace → Next
Select root directory: /path/to/project
Projects → Select All
Uncheck Copy projects into workspace and Add project to working sets
Finish
Solved: If you want to "Create project from existing source", you need to create a new directory and then put the project directory tree into that new directory. Then point to the new directory when importing.
This error message appears when the source code you try to import is inside an existing workspace.
Put your source code in a directory OUTSIDE any existing workspace and then import
Just delete the ".project" file in your project folder (it's hidden on Linux, use "ls -a" to show), then from Eclipse, choose Create Android Project from existing source
Im not sure this will solve your problem since I dont know where it originats from, but when I import a project i go File -> Import -> Existing projects into workspace. Maybe it will circumvent your problem.
It seems you cannot have your project root, with the AndroidManifest.xml deeper than one directory level below your workspace root. I struggled for an hour with this before I just gave up and rearranged my repo.
You can also use Make new > General > Project, then import the project to that project directory
I found James Wald's answer the closest to my solution, except instead of "File->Import->General->Existing Projects into Workspace" (which did not work for me at all) I used "File->Import->Android->Existing Android Code Into Workspace". I am using Helios, maybe your version of Eclipse does not have this quirk.
I had the problem of getting errors when checking out an Android project from SVN. This is what I did and the whole thing settled down.
1. checkout the project from SVN as we normally do any other project
2. right click and get properties of the project
3. In the java build path->order and export tab select the android API and OK it
this removed all the project issues
so far so good but not sure if this is the 100% correct method
This post helped me: http://code.google.com/p/android/issues/detail?id=8431
In my Android Project folder .project file was missing. Restoring the .project file,which will be hidden in Unix OS environment resolved the error.
Updating #JamesWald's answer, and incorporating other comments. Assuming you want to create a cfesh copy from, say, a backup in your new workspace:
Put the existing project in a directory not inside the destination workspace.
In Eclipse: File->Import->Android->Existing Android Code into Workspace, Next
Select root directory: /path/to/project/from/step/1
Projects->Select All (or not, as the case may be)
Make sure you set the new project name correctly - To change one click on the old project name (left column) and then click on the new project name (right column) and then edit. It will default to the class name of the Default Activity.
Assuming you want a copy in the destination workspace, check "Copy projects into workspace"
uncheck "Add project to working sets"
Finish
Same problem happened to me as well and the .project file was not there in the project.
I copied a .project file from an existing android project and replace the project name with the name of the project I am trying to import.
Then using File -> Import -> Existing projects into workspace I was able to import the project.
What works for me is that: File > Import > Existing Project into Workspace (under General tab), then choose the project root folder. The importing of Existing Android Code into Workspace somehow does not work on Eclipse for me.