How best to migrate projects to 1.5?
satya - Monday, April 20, 2009 3:51:33 PM
The steps are as follows
1. Copy the old root directory to a new place
2. Delete R.java from the source tree
3. Delete the root directory of your class files
4. Create new project
5. Use existing source option
6. Point it to the root of your directory
7. Pick your project sdk, etc options on that screen
8. Create project
9. Update the android manifest file with the proper sdk directive
satya - Monday, April 20, 2009 3:52:33 PM
here is the sdk directive
<manifest>
...
<uses-sdk android:minSdkVersion="3" />
...
</manifest>
satya - Thursday, July 16, 2009 10:51:45 PM
For moving one 1.5 project between two eclipses, import seem to work better
1. import
2. General/Existing projects into work space
3. Choose your root directory
4. I prefere copy projects into workspace
5. Finish
satya - Thursday, July 16, 2009 11:43:02 PM
Another way to bring over 1.0 projects
1. import
2. General/Existing projects into work space
3. Choose your root directory
4. I prefere copy projects into workspace
5. Finish
6. Go project and delete old r.java
7. Go to project properties/android/Set project target to what you want
satya - Saturday, July 18, 2009 12:25:26 PM
This seem to work pretty consistently.
This seem to work pretty consistently.
satya - Saturday, September 12, 2009 6:43:58 PM
Few more notes...
The source root directory is where your project is to import from.
By chosing "copy into workspace", eclipse will physically copy the files from the source root directory to a directory under the eclipse work space. Once this is done, if you chose you can delete the source project root directory.
satya - Saturday, September 12, 2009 6:55:21 PM
If you have done this a few times, ...
in fact eclipse remembers these things if you have imported a project before like this. So it is pretty nice. However due to the convenience watch out for defaults.
satya - Sat Jul 28 2012 15:12:55 GMT-0400 (Eastern Daylight Time)
Starting in JellyBean (4.1) tools I have this new way to create a project from sample code
Download samples first
eclipse
new
other
android
android project from samples
Choose the sample project
if you have the project name already in eclipse
rename the previous project in eclipse and
repeat.